mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 19:22:02 +01:00
9 lines
326 B
JavaScript
9 lines
326 B
JavaScript
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", {}) );
|
|
});
|
|
}
|
|
|