summaryrefslogtreecommitdiff
path: root/src/node/hooks/express/admin.js
blob: 70539f0c42996060f5279974ceac25ba4b605cc9 (plain)
1
2
3
4
5
6
7
8
9
var eejs = require('ep_etherpad-lite/node/eejs');

exports.expressCreateServer = function (hook_name, args, cb) {
  args.app.get('/admin', function(req, res) {
    if('/' != req.path[req.path.length-1]) return res.redirect('/admin/');
    res.send( eejs.require("ep_etherpad-lite/templates/admin/index.html", {}) );
  });
}