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

ignore directory in url stucture (Route Groups) #2756

Closed
1 task
Vestedmarius opened this issue Sep 26, 2024 · 3 comments
Closed
1 task

ignore directory in url stucture (Route Groups) #2756

Vestedmarius opened this issue Sep 26, 2024 · 3 comments

Comments

@Vestedmarius
Copy link

Describe the feature

In Nuxt, when using pages its posible to ignore folder in the url of the app. This can be doen with a folder like (name), i think it would be nice to have this option in Nitro aswell. For more info see the Nuxt docs

For example:
Directory: api/admin/(ignored)/test.get.ts URL: api/admin/test

Additional information

  • Would you be willing to help implement this feature?
@carlos-duran
Copy link

It would be great if we could access groups from middleware. This way, we could create a (private) folder to easily protect routes within it.

@ghost
Copy link

ghost commented Oct 1, 2024

This was just resolved with #1205 and #2664, and should be available with the next release.

@pi0
Copy link
Member

pi0 commented Oct 1, 2024

Also available in nightly channel.

@pi0 pi0 closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants