diff options
author | John McLear <john@mclear.co.uk> | 2012-11-05 12:58:02 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-11-05 12:58:02 +0000 |
commit | 3766858dd226d3bcd50a70e31acddfa132c98338 (patch) | |
tree | 3b79ba70dae3a326a18da93fbb74b7b674b48220 /src/node | |
parent | 0fa25264bc7a0b75a232f8835dd1e67ca79f5cbc (diff) | |
download | etherpad-lite-3766858dd226d3bcd50a70e31acddfa132c98338.zip |
add express endpoint for admin index.html
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/hooks/express/admin.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/node/hooks/express/admin.js b/src/node/hooks/express/admin.js index 83bada22..766370fc 100644 --- a/src/node/hooks/express/admin.js +++ b/src/node/hooks/express/admin.js @@ -1,5 +1,8 @@ +var eejs = require('ep_etherpad-lite/node/eejs'); + 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>' ); + res.send( eejs.require("ep_etherpad-lite/templates/admin/index.html", {}) ); }); -};
\ No newline at end of file +} + |