Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-ie-http.
Something went wrong. Try again.
nuxt-ie-http nuxt.config.js
1234567891011121314
export default { modules: [ '@nuxt/http', ], serverMiddleware: [ { path: '/api/test', handler: function(req, res) { res.setHeader('Content-Type', 'application/json') res.end(JSON.stringify({ response: 'Hello from API.' })) } } ]}