summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordennisschagt <dennisschagt@gmail.com>2015-05-12 10:48:48 +0200
committerdennisschagt <dennisschagt@gmail.com>2015-05-12 10:48:48 +0200
commitb889bd0cd26880ddbe12f0f83b2b4819d91cb0a7 (patch)
tree0bbee98d4653156611f6b3c503d264557157816f
parent2f9ecce5b9a8cf2b114f38a38834c2cbd29dadb7 (diff)
downloadn-b889bd0cd26880ddbe12f0f83b2b4819d91cb0a7.tar.gz
Revert "Serve static app and node_modules separately"HEADmaster
This reverts commit 2f9ecce5b9a8cf2b114f38a38834c2cbd29dadb7.
-rw-r--r--app.js1
-rw-r--r--config.js3
2 files changed, 1 insertions, 3 deletions
diff --git a/app.js b/app.js
index b35347b..bab6fe0 100644
--- a/app.js
+++ b/app.js
@@ -44,7 +44,6 @@ app.use('/api/v1', router);
// set up serving of static frontend files
app.use('/', express.static(config.frontend_path));
-app.use('/node_modules', express.static(config.node_modules_path));
var server = app.listen(config.port, function() {
diff --git a/config.js b/config.js
index c53fcaf..5c5c394 100644
--- a/config.js
+++ b/config.js
@@ -21,5 +21,4 @@ exports.session_secret = 'Very safe. Much secret. Wow.';
/**
* Path to the static files of the frontend.
*/
-exports.frontend_path = '../RVS-frontend/app';
-exports.node_modules_path = '../RVS-frontend/node_modules';
+exports.frontend_path = '../RVS-frontend';