codimd/lib/metrics.ts
Raccoon b98e0c3d53
ts: lib/metrics.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:25 +08:00

13 lines
328 B
TypeScript

import {Router} from "express";
import {wrap} from "./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