app.js 327 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())
한규민's avatar
한규민 committed
10
app.use('/upload', express.static('upload'))
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