Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Aug 26, 2019
1 parent a27a197 commit af4da80
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions example/app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var logger = require('morgan');
var http = require('http');
var OpenApiValidator = require('express-openapi-validator').OpenApiValidator;
var app = express();
const express = require('express');
const path = require('path');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const logger = require('morgan');
const http = require('http');
const OpenApiValidator = require('express-openapi-validator').OpenApiValidator;
const app = express();

app.use(bodyParser.urlencoded());
app.use(bodyParser.json());
Expand Down Expand Up @@ -72,7 +72,7 @@ app.use((err, req, res, next) => {
}
});

var server = http.createServer(app);
const server = http.createServer(app);
server.listen(3000);
console.log('Listening on port 3000');

Expand Down

0 comments on commit af4da80

Please sign in to comment.