This commit is contained in:
arturo
2020-08-26 17:10:35 -05:00
parent 22d6964054
commit 4ccd7b674d
3 changed files with 22 additions and 0 deletions
+3
View File
@@ -2,11 +2,14 @@ import * as express from 'express'
import * as bodyParser from 'body-parser'
import routes from './routes/index'
import { createConnection } from 'typeorm'
import * as cors from 'cors'
const PORT = 3000
createConnection()
.then(async (connection) => {
const app = express()
// configure multer
app.use(cors())
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())