Skip to content

Commit

Permalink
remove morgan
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Aug 28, 2020
1 parent ffc2029 commit 41fa857
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 70 deletions.
4 changes: 1 addition & 3 deletions examples/1-standard/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
const logger = require('morgan');
const http = require('http');
const { Pets } = require('./services');
const { OpenApiValidator } = require('express-openapi-validator');
Expand All @@ -15,8 +14,7 @@ app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.text());
app.use(bodyParser.json());

app.use(logger('dev'));

// Optionally serve the API spec
app.use('/spec', express.static(apiSpec));

// 2. Install the OpenApiValidator on your express app
Expand Down
76 changes: 13 additions & 63 deletions examples/1-standard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions examples/1-standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
"license": "MIT",
"dependencies": {
"body-parser": "^1.19.0",
"express-openapi-validator": "file:../../",
"morgan": "^1.10.0"
"express-openapi-validator": "file:../../"
},
"devDependencies": {
"nodemon": "^2.0.4",
"prettier": "^2.0.5"
"nodemon": "^2.0.4"
}
}

0 comments on commit 41fa857

Please sign in to comment.