working create grants, getall, and delete with clean methods

This commit is contained in:
Arjun Patel
2019-01-18 18:02:04 -08:00
parent f046a9f605
commit b0597a99e2
7 changed files with 74 additions and 78 deletions
+4 -1
View File
@@ -3,9 +3,12 @@ const express = require('express'),
app = express(),
bodyParser = require('body-parser'),
port = process.env.PORT,
db = require('./app/config/db.config.js');
db = require('./app/config/db.config.js'),
morgan = require('morgan');
app.use(morgan('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
//handle CORS errors
app.use((req, res, next) => {