I need to create a simple route /my-route
that returns a JSON { "ok": true }
. If possible, this route should be available only from the server.
I found a documentation but with Nuxt3 only, and Nuxt3 is not released yet.
Anyone knows how to do that with Nuxt 2?