Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 631cdf7

Browse files
committed
Simplify node server files
1 parent 3a73bd7 commit 631cdf7

File tree

6 files changed

+2
-2
lines changed

6 files changed

+2
-2
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var app = require("./server/modules/routes");
1+
var app = require("./server/routes");
22

33
// Start the server
44
var server = app.listen(8000, function() {

server/modules/expressConfig.js renamed to server/expressConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = function(app, express) {
77
app.use("/", express.static("app/"));
88

99
// Set the view directory, this enables us to use the .render method inside routes
10-
app.set('views', __dirname + '/../../app/views');
10+
app.set('views', __dirname + '/../app/views');
1111

1212
// parse application/x-www-form-urlencoded
1313
app.use(bodyParser.urlencoded({ extended: false }));
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)