Skip to content

Commit

Permalink
Merge 19c4394 into a888fb4
Browse files Browse the repository at this point in the history
  • Loading branch information
tolulope-od committed Aug 22, 2019
2 parents a888fb4 + 19c4394 commit cb8f753
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 130 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import '@babel/polyfill';
import express from 'express';
import bodyParser from 'body-parser';
import cors from 'cors';
import swaggerUi from 'swagger-ui-express';
import logger from 'morgan';
Expand Down Expand Up @@ -31,8 +30,8 @@ app.get('/', (req, res) => res.status(200).json({ message: 'BANKA APP API RESPON
app.use(logger('dev'));

// Body parser middleware
app.use(bodyParser({ extended: false }));
app.use(bodyParser.json());
app.use(express({ extended: false }));
app.use(express.json());

// Use the routes for the apps routing logic
app.use(`${API_PREFIX}`, routes);
Expand Down
Loading

0 comments on commit cb8f753

Please sign in to comment.