codimd/lib/metrics.js

16 lines
355 B
JavaScript
Raw Normal View History

'use strict'
const { Router } = require('express')
const { wrap } = require('./utils')
// load controller
const statusController = require('./status')
const appRouter = Router()
// register route
appRouter.get('/status', wrap(statusController.getStatus))
appRouter.get('/metrics/codimd', wrap(statusController.getMetrics))
exports.router = appRouter