Display HTTP methods
In order to display HTTP methods accepted for each route, you will need to add a comment to each route file as follows:
/* /api/my-route.ts */
// @methods [GET,POST,PUT,DELETE]
/* rest of the file */
You can skip methods depending on your case, for example:
/* /api/my-route.ts */
// @methods [POST]
/* rest of the file */
By default, methods are displayed in the following colors:
- GET : blue
- POST : yellow
- PUT : yellow
- DELETE : red
Soon we will be adding a feature to change the color of each route within the config file.