-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
As described in https://hyperjumptech.github.io/hyperjump-web-framework/guide/api-route#the-config-file
- The CLI should scan all
route.[method].config.tsfiles in the current directory and its subdirectories. - The CLI should then validate the
route.[method].config.tsfiles using the linter or plugin in Create linter rule or plugin to validate route.[method].config.ts #2 - The CLI should generate
route.tsfile in the same directory as theroute.[method].config.tsfiles - The content of the
route.tsfile should conform to the Next.js convention. https://nextjs.org/docs/app/api-reference/file-conventions/route - The CLI should use templates to generate the
route.ts. The default template should be for generatingroute.tsfor the Next.js App Router. In the future, we can have different templates for say Next.js Pages router.
Metadata
Metadata
Assignees
Labels
No labels