Closed lwswnnscrm closed 5 years ago
This issue as been imported as question since it does not respect router-module issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/router-module/issues/c36.
Hi @lwswnnscrm
To create routes for server-side only (like an API), I suggest you to take a look at the serverMiddleware.
Hi @Atinux , in my case i need take routes by ip user and host, but if i use context in createRouter function i get
[nuxt] Error while mounting app: TypeError: Cannot read property 'req' of undefined
. Can i use router only in server side?Code: