mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
I forgot what i done but i done something
This commit is contained in:
parent
4f387fb7c8
commit
0651e89219
@ -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
2
app.js
@ -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
757
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user