Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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