Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Oct 9, 2021
1 parent d32848b commit b7de550
Show file tree
Hide file tree
Showing 6 changed files with 2,487 additions and 4,391 deletions.
6 changes: 3 additions & 3 deletions examples/1-standard/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const app = express();
const apiSpec = path.join(__dirname, 'api.yaml');

// 1. Install bodyParsers for the request types your API will support
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.text());
app.use(bodyParser.json());
app.use(express.urlencoded({ extended: false }));
app.use(express.text());
app.use(express.json());

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

0 comments on commit b7de550

Please sign in to comment.