router 분리
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { procedure, router } from '../../trpc.js';
|
||||
|
||||
export const healthRouter = router({
|
||||
ping: procedure.query(({ ctx }) => ({
|
||||
ok: true,
|
||||
profile: ctx.profile.name,
|
||||
now: new Date().toISOString(),
|
||||
})),
|
||||
});
|
||||
Reference in New Issue
Block a user