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

const app = express()

app.use(express.json())
app.use(express.urlencoded({ extended: true }))
app.use(cookieParser())
Jiwon Yoon's avatar
Jiwon Yoon committed
10

Kim, Subin's avatar
Kim, Subin committed
11
12
app.use('/api', mainRouter)

Jiwon Yoon's avatar
Jiwon Yoon committed
13

Kim, Subin's avatar
Kim, Subin committed
14
export default app