Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support string imports for Route#group() #65

Open
joshmanders opened this issue Mar 13, 2024 · 0 comments
Open

Support string imports for Route#group() #65

joshmanders opened this issue Mar 13, 2024 · 0 comments
Labels
component:http-server Pertains to the kubit/http-server component status:accepted We have accepted this request and plan to do it but aren't sure when type:feature New feature or request

Comments

@joshmanders
Copy link
Member

Sometimes it can become pretty unweildly having a bunch of Route.group(() => { ... }) in your routes, so we could make this a bit better by allowing you to pass a path string into the group method which will then tell Kubit to import that file and execute it in the context of the route group.

This could allow you to split things up

Route.group('./dashboard');
Route.group('./admin').domain('admin.example.com');
@joshmanders joshmanders added type:feature New feature or request component:http-server Pertains to the kubit/http-server component status:accepted We have accepted this request and plan to do it but aren't sure when labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:http-server Pertains to the kubit/http-server component status:accepted We have accepted this request and plan to do it but aren't sure when type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant