mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-01-14 00:07:59 -05:00
9 lines
319 B
TypeScript
9 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 });
|
|
});
|