mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Expose current stats at /stats
This commit is contained in:
parent
940f114a84
commit
387091c5c9
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@ var path = require('path');
|
|||
var eejs = require('ep_etherpad-lite/node/eejs');
|
||||
|
||||
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||
// expose current stats
|
||||
args.app.get('/stats', function(req, res) {
|
||||
res.json(require('ep_etherpad-lite/node/stats').toJSON())
|
||||
})
|
||||
|
||||
//serve index.html under /
|
||||
args.app.get('/', function(req, res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue