0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00
logto/packages/core/src/routes/status.ts
2022-01-27 19:26:34 +08:00

9 lines
218 B
TypeScript

import { AnonymousRouter } from './types';
export default function statusRoutes<T extends AnonymousRouter>(router: T) {
router.get('/status', async (ctx, next) => {
ctx.status = 204;
return next();
});
}