Created
July 14, 2020 10:06
-
-
Save velotiotech/c449d81e54b81df7136b3076698efaa5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cookieParser from 'cookie-parser'; | |
import express from 'express'; | |
import { BAD_REQUEST } from 'http-status-codes'; | |
import BaseRouter from './routes'; | |
const app = express(); | |
app.use(express.json()); | |
app.use(express.urlencoded({extended: true})); | |
app.use(cookieParser()); | |
// Add APIs | |
app.use('/api', BaseRouter); | |
// Export express instance | |
export default app; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment