keep going with api porting in nuxt

This commit is contained in:
lesion
2019-04-23 13:45:52 +00:00
parent 35fa25c060
commit eed3896396
17 changed files with 191 additions and 136 deletions

View File

@@ -1,5 +1,6 @@
const express = require('express')
const consola = require('consola')
const morgan = require('morgan')
const bodyParser = require('body-parser')
const { Nuxt, Builder } = require('nuxt')
const app = express()
@@ -29,7 +30,7 @@ async function start() {
// Give nuxt middleware to express
app.use(cors(corsConfig))
// app.use(morgan('dev'))
app.use(morgan('dev'))
// app.set('views', path.join)
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())