You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wanted to say thank you so much for this package. I love it.
Okay so I was curious if it would be possible to allow the developer to add a global route prefix and possibly specify a version for the route. Like in Nest.js with global prefixes and Versioning.
So for example, i want my api’s to start with “/api/v1/“. Right now I would have to create two folders and then put all my routes in those folders but instead I’d like to be able to specify the global prefix in the custom server endpoint and then within each route I’d like to then specify the version of the route.
Requirements
All CI/CD checks are passing.
There is no drop in the test coverage percentage.
Developer can specify a global prefix
Developer can specify versions for routes
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Overall we think that the suggestion is valid but also doesn't fit the main development style we have implemented in Dart Frog. Typically given how file path based frameworks work the solution of creating new folders and copying in (or referencing) files is the typically way to achieve what your looking for. That being said we did have some questions around the use case your trying to solve here. Is it just for versioning in a Production deployment or are there development use cases that could be aided by having this functionality as well?
This could be something that may be solved by our work on a plugin/codegen system to allow others to write plugins that modify the build process for a Dart Frog project as well but we don't have an ETA right now for that landing.
Description
Just wanted to say thank you so much for this package. I love it.
Okay so I was curious if it would be possible to allow the developer to add a global route prefix and possibly specify a version for the route. Like in Nest.js with global prefixes and Versioning.
So for example, i want my api’s to start with “/api/v1/“. Right now I would have to create two folders and then put all my routes in those folders but instead I’d like to be able to specify the global prefix in the custom server endpoint and then within each route I’d like to then specify the version of the route.
Requirements
Additional Context
No response
The text was updated successfully, but these errors were encountered: