codimd/lib/metrics.ts
Raccoon 6f93e43978
move app.js to lib/
update

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:31 +08:00

14 lines
335 B
TypeScript

import {Router} from "express";
import {wrap} from "./utils";
// load controller
import * as statusController from "./status";
const appRouter = Router()
// register route
appRouter.get('/status', wrap(statusController.getStatus))
appRouter.get('/metrics/codimd', wrap(statusController.getMetrics))
export const router = appRouter