mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
10 lines
334 B
JavaScript
10 lines
334 B
JavaScript
'use strict';
|
|
const eejs = require('../../eejs');
|
|
|
|
exports.expressCreateServer = (hookName, args, cb) => {
|
|
args.app.get('/admin', (req, res) => {
|
|
if ('/' !== req.path[req.path.length - 1]) return res.redirect('./admin/');
|
|
res.send(eejs.require('ep_etherpad-lite/templates/admin/index.html', {req}));
|
|
});
|
|
return cb();
|
|
};
|