mirror of
https://github.com/nicotsx/zerobyte.git
synced 2025-12-10 12:10:51 +01:00
10 lines
330 B
TypeScript
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);
|
|
});
|