enjoycoding / vite-plugin-mock-server

A mock server plugin for Vite.
MIT License
58 stars 13 forks source link

[Feature Request] Auto add json file to router #36

Open maicss opened 2 months ago

maicss commented 2 months ago

If a json file cats.json in /mock/cat folder, add a router rule /api/cat/cats and return value is the content of cats.json without any further configuration.

Will you consider this idea? Thanks in advance!