strapi icon indicating copy to clipboard operation
strapi copied to clipboard

How can i use this under server folder ?

Open mentalrob opened this issue 1 year ago • 1 comments

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 avatar Dec 28 '23 16:12 mentalrob

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.

lessainspasorchies avatar Jan 06 '24 20:01 lessainspasorchies