add express endpoint for admin index.html

This commit is contained in:
John McLear 2012-11-05 12:58:02 +00:00
parent 0fa25264bc
commit 3766858dd2
2 changed files with 25 additions and 2 deletions

View file

@ -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", {}) );
});
};
}