Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 14, 2020 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/c449d81e54b81df7136b3076698efaa5 to your computer and use it in GitHub Desktop.
Save velotiotech/c449d81e54b81df7136b3076698efaa5 to your computer and use it in GitHub Desktop.
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