...
 
Commits (2)
......@@ -3,6 +3,7 @@
//
import express from 'express'
import bodyParser from 'body-parser'
import cors from 'cors'
//
// Routes
//
......@@ -30,6 +31,10 @@ app.use(bodyParser.json({
limit: '5mb'
}))
//
// CORS config
//
app.use(cors())
//
// Public folder config
//
app.use(express.static('app/public'))
......
......@@ -12,6 +12,7 @@
"test": "standard"
},
"dependencies": {
"cors": "^2.8.5",
"esm": "^3.2.25",
"express": "^4.17.1",
"express-validator": "^6.1.1",
......