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

nuxtjs3 - rest-nuxtjs example #5107

Open
schalkneethling opened this issue Aug 21, 2023 · 0 comments
Open

nuxtjs3 - rest-nuxtjs example #5107

schalkneethling opened this issue Aug 21, 2023 · 0 comments

Comments

@schalkneethling
Copy link

schalkneethling commented Aug 21, 2023

I have a general question about the Nuxtjs Prisma repo:
https://github.com/prisma/prisma-examples/tree/latest/typescript/rest-nuxtjs

Although I can see that the example repository uses Nuxt3 ("nuxt": "3.6.5" at the time of writing), the API methods are defined in server/routes. I am not saying that this is incorrect, but according to the Nextjs docs (https://nuxt.com/docs/guide/directory-structure/server#server-directory), it might be more nuxi 😄 if the API lives inside server/api.

What do you all think? Thanks!

Update: The main difference is that when in routes, the route will not have /api prepended.

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