summaryrefslogtreecommitdiff
path: root/src/node/hooks/express
diff options
context:
space:
mode:
authorNobody Really <notactualowl@fakepmail.ie>2016-09-20 09:06:07 +0200
committerNobody Really <notactualowl@fakepmail.ie>2016-09-20 09:30:35 +0200
commit97fd1ab2feffa92494d837d2aefd842853d9f816 (patch)
tree49afda3af472f4ad18afba01775a64b74d299a7f /src/node/hooks/express
parent32eb6a2288ae4fc6ba0dc36482ff1fdc8c1b101e (diff)
downloadetherpad-lite-97fd1ab2feffa92494d837d2aefd842853d9f816.zip
Added LibreJS support
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r--src/node/hooks/express/specialpages.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node/hooks/express/specialpages.js b/src/node/hooks/express/specialpages.js
index e8d7795a..2840f82c 100644
--- a/src/node/hooks/express/specialpages.js
+++ b/src/node/hooks/express/specialpages.js
@@ -16,6 +16,13 @@ exports.expressCreateServer = function (hook_name, args, cb) {
res.send(eejs.require("ep_etherpad-lite/templates/index.html"));
});
+ //serve javascript.html
+ args.app.get('/javascript', function(req, res)
+ {
+ res.send(eejs.require("ep_etherpad-lite/templates/javascript.html"));
+ });
+
+
//serve robots.txt
args.app.get('/robots.txt', function(req, res)
{