summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-06-20 20:59:15 +0200
committerTom Smeding <tom@tomsmeding.com>2025-06-20 20:59:15 +0200
commit19191d45908498b6ea4d9493b4c08caec57b5386 (patch)
tree4a856f28164cf339f6369ab0598cb480cdd7b22c /modules
parent745dba98b429b9c06056a444aead4b5983b03600 (diff)
Update dependenciesHEADmaster
Diffstat (limited to 'modules')
-rw-r--r--modules/blog/blog.js2
-rw-r--r--modules/changes/changes.js2
-rw-r--r--modules/proxy/proxy.js2
-rw-r--r--modules/save/save.js2
-rw-r--r--modules/timetrack/timetrack.js2
-rw-r--r--modules/timetrack2/timetrack2.js2
-rw-r--r--modules/timetrack3/timetrack3.js2
-rw-r--r--modules/todo/todo.js2
-rw-r--r--modules/zelfoverhoor/zelfoverhoor.js4
9 files changed, 10 insertions, 10 deletions
diff --git a/modules/blog/blog.js b/modules/blog/blog.js
index 3985fdb..4843d4b 100644
--- a/modules/blog/blog.js
+++ b/modules/blog/blog.js
@@ -112,7 +112,7 @@ module.exports = (app, io, _moddir) => {
next();
});
- app.get("/blog/*", (req, res) => {
+ app.get("/blog/*rest", (req, res) => {
if (req.path.indexOf("/.") != -1) {
res.sendStatus(404);
return;
diff --git a/modules/changes/changes.js b/modules/changes/changes.js
index 0d8fa24..9fa1e44 100644
--- a/modules/changes/changes.js
+++ b/modules/changes/changes.js
@@ -320,7 +320,7 @@ function performCleanup(){
module.exports=function(app,io,_moddir){
moddir=_moddir;
- app.all(["/changes","/changes/*"],cmn.authgen());
+ app.all(["/changes","/changes/*rest"],cmn.authgen());
app.get("/changes",function(req,res){
res.sendFile(moddir+"/changes.html");
});
diff --git a/modules/proxy/proxy.js b/modules/proxy/proxy.js
index ccec53a..3ebe236 100644
--- a/modules/proxy/proxy.js
+++ b/modules/proxy/proxy.js
@@ -39,7 +39,7 @@ module.exports=function(app,io,moddir){
return false;
}
- app.all("/proxy/:id/*",function(req,res){
+ app.all("/proxy/:id/*rest",function(req,res){
var id=req.params.id;
var path="/"+req.path.split("/").slice(3).join("/");
if(iddict[id]){
diff --git a/modules/save/save.js b/modules/save/save.js
index 9873a52..ae1cfaf 100644
--- a/modules/save/save.js
+++ b/modules/save/save.js
@@ -46,7 +46,7 @@ module.exports=function(app,io,_moddir){
});
});
- app.all(["/save/read","/save/read/*"],cmn.authgen());
+ app.all(["/save/read","/save/read/*rest"],cmn.authgen());
app.get("/save/read",function(req,res){
res.sendFile(moddir+"/read.html");
diff --git a/modules/timetrack/timetrack.js b/modules/timetrack/timetrack.js
index 886ea1e..b654ef1 100644
--- a/modules/timetrack/timetrack.js
+++ b/modules/timetrack/timetrack.js
@@ -159,7 +159,7 @@ module.exports=function(app,io,_moddir){
});
});
- app.all(["/timetrack","/timetrack/*"],authMiddleware); //for all the other endpoints
+ app.all(["/timetrack","/timetrack/*rest"],authMiddleware); //for all the other endpoints
app.get("/timetrack",function(req,res){
res.sendFile(moddir+"/timetrack.html");
diff --git a/modules/timetrack2/timetrack2.js b/modules/timetrack2/timetrack2.js
index cb22132..f3d35ae 100644
--- a/modules/timetrack2/timetrack2.js
+++ b/modules/timetrack2/timetrack2.js
@@ -163,7 +163,7 @@ module.exports = function(app, io, _moddir){
});
});
- app.all([ROOT_ENDPOINT, ROOT_ENDPOINT+"/*"], authMiddleware); //for all the other endpoints
+ app.all([ROOT_ENDPOINT, ROOT_ENDPOINT+"/*rest"], authMiddleware); //for all the other endpoints
app.get(ROOT_ENDPOINT, function(req, res){
res.sendFile(moddir + "/timetrack.html");
diff --git a/modules/timetrack3/timetrack3.js b/modules/timetrack3/timetrack3.js
index dbb0e5b..ba1d9c0 100644
--- a/modules/timetrack3/timetrack3.js
+++ b/modules/timetrack3/timetrack3.js
@@ -202,7 +202,7 @@ module.exports = function(app, io, _moddir){
});
// for all the other endpoints, authorisation is needed
- app.all([ROOT_ENDPOINT, ROOT_ENDPOINT + "/*"], authMiddleware);
+ app.all([ROOT_ENDPOINT, ROOT_ENDPOINT + "/*rest"], authMiddleware);
// - -> html
app.get(ROOT_ENDPOINT, (req, res) => {
diff --git a/modules/todo/todo.js b/modules/todo/todo.js
index b5d3417..239dc19 100644
--- a/modules/todo/todo.js
+++ b/modules/todo/todo.js
@@ -170,7 +170,7 @@ module.exports=function(app,io,_moddir){
});
});
- app.all(["/todo","/todo/*"],authMiddleware); //for all the other endpoints
+ app.all(["/todo","/todo/*rest"],authMiddleware); //for all the other endpoints
app.get("/todo",function(req,res){
var contents=fs.readFileSync(moddir+"/todo.html","utf8");
diff --git a/modules/zelfoverhoor/zelfoverhoor.js b/modules/zelfoverhoor/zelfoverhoor.js
index 0acb322..9474378 100644
--- a/modules/zelfoverhoor/zelfoverhoor.js
+++ b/modules/zelfoverhoor/zelfoverhoor.js
@@ -117,7 +117,7 @@ module.exports=function(app,io,_moddir){
persistDB();
}
- app.all("/zelfoverhoor*",function(req,res,next){
+ app.all("/zelfoverhoor*rest",function(req,res,next){
res.header("Cache-Control","private, no-cache, no-store, must-revalidate");
res.header("Expires","-1");
res.header("Pragma","no-cache");
@@ -161,7 +161,7 @@ module.exports=function(app,io,_moddir){
res.send(JSON.stringify(resset));
});
- app.use(["/zelfoverhoor/docent","/zelfoverhoor/docent/*"],cmn.authgen(accounts));
+ app.use(["/zelfoverhoor/docent","/zelfoverhoor/docent/*rest"],cmn.authgen(accounts));
app.get("/zelfoverhoor/docent",function(req,res){
fs.readFile(moddir+"/docent.html",function(err,data){
if(err)throw err;