Skip to content

Commit e923a48

Browse files
committed
chore: enable cookie parser
1 parent d27eaa8 commit e923a48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import path from 'path'
55
import cors from 'cors'
66
import helmet from 'helmet'
77
import bodyParser from 'body-parser'
8+
import cookieParser from 'cookie-parser'
89
import indexRouter from 'routes'
910
import withState from 'helpers/withState'
1011
import models from 'models/_instance'
@@ -26,6 +27,7 @@ app.use(cors())
2627
app.use(logger('dev'))
2728
app.use(bodyParser.json())
2829
app.use(bodyParser.urlencoded({ extended: false }))
30+
app.use(cookieParser())
2931
app.use(express.static(path.join(`${__dirname}/../`, 'public')))
3032

3133
app.use((req: Request, res, next) => {

0 commit comments

Comments
 (0)