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

routes/index.ts overrides every request #283

Closed
danielroe opened this issue Jun 11, 2022 · 0 comments
Closed

routes/index.ts overrides every request #283

danielroe opened this issue Jun 11, 2022 · 0 comments

Comments

@danielroe
Copy link
Member

I've been trying Nitro and following the Getting Started guide, but I've found out that, in this structure:

repository/
  |- routes/
      |- index.ts
      |- demo.ts
      |- test.ts

My index.ts file will always override all routes, while removing it allows me to access /demo and /test. Is this the desired behavior when defining routes?

Thanks! 😉

Originally posted by @yuigoto in #275

@pi0 pi0 closed this as completed in a087673 Jun 12, 2022
WinterYukky pushed a commit to WinterYukky/nitro that referenced this issue Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant