summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-02-03 17:35:20 +0100
committertomsmeding <tom.smeding@gmail.com>2019-02-03 17:35:20 +0100
commita52b7b3949e5fc39611e8d5f0a8791efcc5a816e (patch)
treea8c2a3ba8ff8b8fe4bc0eec269e040d0b4c03e5d /modules
parent683f35ac44f725c6ea4276e4042b3a5d424776a8 (diff)
Move web_files to server folder
Diffstat (limited to 'modules')
-rw-r--r--modules/$common.js2
-rw-r--r--modules/subd-krokodil/subd-krokodil.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/$common.js b/modules/$common.js
index c5c3635..3d66042 100644
--- a/modules/$common.js
+++ b/modules/$common.js
@@ -5,8 +5,8 @@ var cwd=process.cwd();
var globalAccounts=require(cwd+"/globalAccounts.json");
module.exports={
- "rootdir":path.dirname(cwd),
"serverdir":cwd,
+ "webfilesdir":cwd+"/web_files",
"simpleHTMLescape":function simpleHTMLescape(str){
return str.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
},
diff --git a/modules/subd-krokodil/subd-krokodil.js b/modules/subd-krokodil/subd-krokodil.js
index beabddd..b788863 100644
--- a/modules/subd-krokodil/subd-krokodil.js
+++ b/modules/subd-krokodil/subd-krokodil.js
@@ -10,7 +10,7 @@ module.exports=function(app,io,moddir){
});
router.get("/",function(req,res){
- res.sendFile(cmn.rootdir+"/web_files/krokodil.jpg");
+ res.sendFile(cmn.webfilesdir+"/krokodil.jpg");
});
app.use(function(req,res,next){