summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordennisschagt <dennisschagt@gmail.com>2015-05-12 09:26:36 +0200
committerdennisschagt <dennisschagt@gmail.com>2015-05-12 09:26:36 +0200
commit2f9ecce5b9a8cf2b114f38a38834c2cbd29dadb7 (patch)
tree794e4f526fcd660a7938df8135edcf5a5d03efff
parent16ebf5e81c47ac9c6d5a5c727e86e9863e4051a1 (diff)
downloadn-2f9ecce5b9a8cf2b114f38a38834c2cbd29dadb7.tar.gz
Serve static app and node_modules separately
-rw-r--r--app.js1
-rw-r--r--config.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/app.js b/app.js
index bab6fe0..b35347b 100644
--- a/app.js
+++ b/app.js
@@ -44,6 +44,7 @@ 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 5c5c394..c53fcaf 100644
--- a/config.js
+++ b/config.js
@@ -21,4 +21,5 @@ exports.session_secret = 'Very safe. Much secret. Wow.';
/**
* Path to the static files of the frontend.
*/
-exports.frontend_path = '../RVS-frontend';
+exports.frontend_path = '../RVS-frontend/app';
+exports.node_modules_path = '../RVS-frontend/node_modules';