Files
zerobyte/app/server/modules/auth/auth.controller.ts
Nico 99932a8522 refactor: better-auth (#319)
* refactor: better-auth

* chore: pr feedback

* chore: lower + trim usernames in db
2026-01-07 22:36:20 +01:00

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 });
});