diff --git a/app.js b/app.js index ab7aed4..2ae8aed 100644 --- a/app.js +++ b/app.js @@ -1,13 +1,13 @@ -var createError = require('http-errors'); -var express = require('express'); -var path = require('path'); -var cookieParser = require('cookie-parser'); -var logger = require('morgan'); +const createError = require('http-errors'), + express = require('express'), + path = require('path'), + cookieParser = require('cookie-parser'), + logger = require('morgan'), -var indexRouter = require('./routes/index'); -var usersRouter = require('./routes/users'); + indexRouter = require('./routes/index'), + usersRouter = require('./routes/users'); -var app = express(); +let app = express(); // view engine setup app.set('views', path.join(__dirname, 'views')); diff --git a/routes/index.js b/routes/index.js index ecca96a..6aab441 100644 --- a/routes/index.js +++ b/routes/index.js @@ -1,9 +1,9 @@ -var express = require('express'); -var router = express.Router(); +const express = require('express'); +const router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { - res.render('index', { title: 'Express' }); + res.render('index', { title: 'Trivernis.net' }); }); module.exports = router; diff --git a/routes/users.js b/routes/users.js index 623e430..f15a20d 100644 --- a/routes/users.js +++ b/routes/users.js @@ -1,5 +1,5 @@ -var express = require('express'); -var router = express.Router(); +const express = require('express'); +const router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) {