Files
zerobyte/apps/server/src/modules/system/system.controller.ts
2025-11-08 10:14:42 +01:00

10 lines
330 B
TypeScript

import { Hono } from "hono";
import { systemInfoDto, type SystemInfoDto } from "./system.dto";
import { systemService } from "./system.service";
export const systemController = new Hono().get("/info", systemInfoDto, async (c) => {
const info = await systemService.getSystemInfo();
return c.json<SystemInfoDto>(info, 200);
});