app.js 281 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
import express from 'express'
Kim, Subin's avatar
Kim, Subin committed
2
import cookieParser from 'cookie-parser'
Choi Ga Young's avatar
Choi Ga Young committed
3
import mainRouter from './routes/index.js'
Kim, Subin's avatar
Kim, Subin committed
4
5
6
7
8

const app = express()

app.use(express.json())
app.use(express.urlencoded({ extended: true }))
Kim, Subin's avatar
Kim, Subin committed
9
app.use(cookieParser())
Choi Ga Young's avatar
Choi Ga Young committed
10
app.use('/api', mainRouter)
Kim, Subin's avatar
Kim, Subin committed
11
12

export default app