mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 10:44:52 +00:00
b98e0c3d53
Signed-off-by: Raccoon <raccoon@hackmd.io>
13 lines
328 B
TypeScript
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
|