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');
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'));

@ -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;

@ -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) {

Loading…
Cancel
Save