Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm audit fix #892

Merged
merged 4 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/1-standard/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const express = require('express');
const path = require('path');
const http = require('http');
const cookieParser = require('cookie-parser'); // Add if using cookie auth
const { Pets } = require('./services');
const OpenApiValidator = require('express-openapi-validator');

Expand All @@ -12,6 +13,7 @@ const apiSpec = path.join(__dirname, 'api.yaml');
app.use(express.urlencoded({ extended: false }));
app.use(express.text());
app.use(express.json());
app.use(cookieParser()); // Add if using cookie auth enables req.cookies

// Optionally serve the API spec
app.use('/spec', express.static(apiSpec));
Expand Down
3 changes: 3 additions & 0 deletions examples/2-standard-multiple-api-specs/app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
const express = require('express');
const cookieParser = require('cookie-parser');
const path = require('path');
const http = require('http');

const OpenApiValidator = require('express-openapi-validator');

app = express();
app.use(express.urlencoded({ extended: false }));
app.use(express.text());
app.use(express.json());
app.use(cookieParser()); // add if using cookie auth

const versions = [1, 2];

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

Loading