|
@ -3,7 +3,7 @@ const bodyParser = require('body-parser'); |
|
|
|
|
|
|
|
|
const createServer = (port = 3500) => { |
|
|
const createServer = (port = 3500) => { |
|
|
const app = express(); |
|
|
const app = express(); |
|
|
app.use(bodyParser.json()); |
|
|
app.use(bodyParser.json({ limit: '50mb' })); |
|
|
app.use(bodyParser.urlencoded({ extended: false })); |
|
|
app.use(bodyParser.urlencoded({ extended: false })); |
|
|
app.use((req, res, next) => { |
|
|
app.use((req, res, next) => { |
|
|
res.header('Access-Control-Allow-Origin', '*'); |
|
|
res.header('Access-Control-Allow-Origin', '*'); |
|
|