mirror of
https://github.com/status-im/codimd.git
synced 2025-01-12 12:44:07 +00:00
6f93e43978
update Signed-off-by: Raccoon <raccoon@hackmd.io>
14 lines
335 B
TypeScript
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
|