Ziko
Getting Nuxt page (URL/Name) in API server request?
Hi All
I'm having trouble getting the nuxt component/page full path dynamically in my API eventhandler, without having to pass it as some sort of data in the request.
I've tried checking all the composables, but the one that works for me in middleware doesn't work in the API server:
useRequestURL();
Any ideas?15 replies