We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d27eaa8 commit e923a48Copy full SHA for e923a48
src/app.ts
@@ -5,6 +5,7 @@ import path from 'path'
5
import cors from 'cors'
6
import helmet from 'helmet'
7
import bodyParser from 'body-parser'
8
+import cookieParser from 'cookie-parser'
9
import indexRouter from 'routes'
10
import withState from 'helpers/withState'
11
import models from 'models/_instance'
@@ -26,6 +27,7 @@ app.use(cors())
26
27
app.use(logger('dev'))
28
app.use(bodyParser.json())
29
app.use(bodyParser.urlencoded({ extended: false }))
30
+app.use(cookieParser())
31
app.use(express.static(path.join(`${__dirname}/../`, 'public')))
32
33
app.use((req: Request, res, next) => {
0 commit comments