diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-12-11 12:33:01 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-12-11 12:33:01 +0100 |
commit | 1363593f6432c417b998a745fef1ce3439dda4f8 (patch) | |
tree | c44a3f6d8ac3fc19b02badb347f7c26359096e2e | |
parent | 8a6e5f0a22ff31ef3735f10fa2730c29ba6a912d (diff) |
Also authenticate the root listing of univq
-rwxr-xr-x | webserver.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webserver.js b/webserver.js index ee70031..04984a0 100755 --- a/webserver.js +++ b/webserver.js @@ -60,7 +60,7 @@ app.get("/",function(req,res){ ); }); -app.get("/f/univq/*",cmn.authgen()); +app.get(["/f/univq","/f/univq/*"],cmn.authgen()); app.get("/f/*",function(req,res){ var parsed=url.parse(req.url),basefname=parsed.pathname.slice(2).replace(/\/\.+[^\/]*\//g,"/"); |