mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
9 lines
218 B
TypeScript
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();
|
|
});
|
|
}
|