fix(export-config): missing call to service

This commit is contained in:
Nicolas Meienberger 2026-01-04 15:42:44 +01:00
parent 3f550678db
commit 3da653d5ad
2 changed files with 7 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import {
fullExportDto,
getUpdatesDto,
systemInfoDto,
type ExportFullConfigResponse,
type SystemInfoDto,
type UpdateInfoDto,
} from "./system.dto";
@ -79,4 +80,8 @@ export const systemController = new Hono()
if (!isValid) {
return c.json({ message: "Incorrect password" }, 401);
}
const res = await systemService.exportConfig(body);
return c.json(res);
});

View file

@ -107,6 +107,8 @@ const exportResponseSchema = type({
.optional(),
});
export type ExportFullConfigResponse = typeof exportResponseSchema.infer;
const errorResponseSchema = type({
error: "string",
});