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

How can i use this under server folder ? #380

Open
mentalrob opened this issue Dec 28, 2023 · 1 comment
Open

How can i use this under server folder ? #380

mentalrob opened this issue Dec 28, 2023 · 1 comment
Labels
question Further information is requested

Comments

@mentalrob
Copy link

Hello,
I want to use strapi module under my server/routes/strapi.ts file but it appears i can't use useStrapi in server folder. Is there a way to use the module inside the server folder ?

@mentalrob mentalrob added the question Further information is requested label Dec 28, 2023
@lessainspasorchies
Copy link

lessainspasorchies commented Jan 6, 2024

Lots of people would love to use this module from Nitro, but it has been designed only for the client side.
I'm calling the Strapi API with $fetch in /server/api and build the query string with qs, as recommended by the Strapi team. I only use the module for everything related to Authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants