Changes to app

- changed js style
pull/3/head
Trivernis 6 years ago
parent dbf0ff90be
commit c7507fb4f7

@ -1,13 +1,13 @@
var createError = require('http-errors'); const createError = require('http-errors'),
var express = require('express'); express = require('express'),
var path = require('path'); path = require('path'),
var cookieParser = require('cookie-parser'); cookieParser = require('cookie-parser'),
var logger = require('morgan'); logger = require('morgan'),
var indexRouter = require('./routes/index'); indexRouter = require('./routes/index'),
var usersRouter = require('./routes/users'); usersRouter = require('./routes/users');
var app = express(); let app = express();
// view engine setup // view engine setup
app.set('views', path.join(__dirname, 'views')); app.set('views', path.join(__dirname, 'views'));

@ -1,9 +1,9 @@
var express = require('express'); const express = require('express');
var router = express.Router(); const router = express.Router();
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res, next) { router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' }); res.render('index', { title: 'Trivernis.net' });
}); });
module.exports = router; module.exports = router;

@ -1,5 +1,5 @@
var express = require('express'); const express = require('express');
var router = express.Router(); const router = express.Router();
/* GET users listing. */ /* GET users listing. */
router.get('/', function(req, res, next) { router.get('/', function(req, res, next) {

Loading…
Cancel
Save