mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
9 lines
217 B
TypeScript
9 lines
217 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();
|
||
|
});
|
||
|
}
|