appMiddleware in routeRules not working?
I want to run a middleware when my API in
Nuxt 3.12.2
Then, I access the API via Postman. Method: Post. URL:
The response is
What am I missing or is this a bug?
/server/api/admin/text-snippet.post.ts is being called but it doesn't run the middleware at all.Nuxt 3.12.2
nuxt.config.tsmiddleware/mytest.tsserver/api/admin/text-snippet.post.tsThen, I access the API via Postman. Method: Post. URL:
http://localhost:3000/api/admin/text-snippetThe response is
{ success: true }What am I missing or is this a bug?