I forgot what i done but i done something

This commit is contained in:
Esther 2020-06-20 21:52:33 +01:00
parent 4f387fb7c8
commit 0651e89219
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA
4 changed files with 368 additions and 409 deletions

View File

@ -1,3 +1,3 @@
# pastel.codes # pastel.codes
A portfolio website written in Node.js A portfolio website written in node.js, pug and sass

2
app.js
View File

@ -6,7 +6,6 @@ var logger = require('morgan');
var sassMiddleware = require('node-sass-middleware'); var sassMiddleware = require('node-sass-middleware');
var indexRouter = require('./routes/index'); var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var app = express(); var app = express();
@ -27,7 +26,6 @@ app.use(sassMiddleware({
app.use(express.static(path.join(__dirname, 'public'))); app.use(express.static(path.join(__dirname, 'public')));
app.use('/', indexRouter); app.use('/', indexRouter);
app.use('/users', usersRouter);
// catch 404 and forward to error handler // catch 404 and forward to error handler
app.use(function(req, res, next) { app.use(function(req, res, next) {

757
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,12 +6,16 @@
"start": "node ./bin/www" "start": "node ./bin/www"
}, },
"dependencies": { "dependencies": {
"cookie-parser": "~1.4.4", "cookie-parser": "1.4.4",
"debug": "~2.6.9", "debug": "4.1.1",
"express": "~4.16.1", "express": "4.17.1",
"http-errors": "~1.6.3", "http-errors": "1.7.3",
"morgan": "~1.9.1", "morgan": "1.10.0",
"node-sass-middleware": "0.11.0", "node-sass-middleware": "0.11.0",
"pug": "2.0.0-beta11" "pug": "3.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npx nodemon ./bin/www"
} }
} }