diff options
author | Marcel Klehr <mklehr@gmx.net> | 2012-11-01 19:45:26 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2012-11-01 19:45:26 +0100 |
commit | 2d6e5776834ad1848f76dfbe272af2e5661281d4 (patch) | |
tree | 00fcf5d235fffecb2bd68b6aa707971a1580712d | |
parent | 2311b0fbb4ae2c34b2bb4f9303bf4064180e2c40 (diff) | |
download | etherpad-lite-2d6e5776834ad1848f76dfbe272af2e5661281d4.zip |
Put up some '/admin doesn't exist' notice.
-rw-r--r-- | src/ep.json | 1 | ||||
-rw-r--r-- | src/node/hooks/express/admin.js | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ep.json b/src/ep.json index ce6d3a00..f5a653f6 100644 --- a/src/ep.json +++ b/src/ep.json @@ -13,6 +13,7 @@ { "name": "importexport", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/importexport:expressCreateServer" } }, { "name": "errorhandling", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/errorhandling:expressCreateServer" } }, { "name": "socketio", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/socketio:expressCreateServer" } }, + { "name": "admin", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/admin:expressCreateServer" } }, { "name": "adminplugins", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/adminplugins:expressCreateServer", "socketio": "ep_etherpad-lite/node/hooks/express/adminplugins:socketio" } } diff --git a/src/node/hooks/express/admin.js b/src/node/hooks/express/admin.js new file mode 100644 index 00000000..83bada22 --- /dev/null +++ b/src/node/hooks/express/admin.js @@ -0,0 +1,5 @@ +exports.expressCreateServer = function (hook_name, args, cb) { + args.app.get('/admin', function(req, res) { + res.send( 501, 'Not Implemented, yet. Meanwhile go to <a href="/admin/plugins">/admin/plugins</a>' ); + }); +};
\ No newline at end of file |