zerobyte/app/server/modules/auth/auth.controller.ts
2026-01-07 22:11:25 +01:00

8 lines
319 B
TypeScript

import { Hono } from "hono";
import { getStatusDto, type GetStatusDto } from "./auth.dto";
import { authService } from "./auth.service";
export const authController = new Hono().get("/status", getStatusDto, async (c) => {
const hasUsers = await authService.hasUsers();
return c.json<GetStatusDto>({ hasUsers });
});