I\'m using nuxt.js in ssr mode. By default when you want to add an api, you can add it to serverMiddleware in nuxt.config.js file. Then you can def
serverMiddleware
nuxt.config.js