fix(export-config): missing call to service
This commit is contained in:
parent
3f550678db
commit
3da653d5ad
2 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -107,6 +107,8 @@ const exportResponseSchema = type({
|
|||
.optional(),
|
||||
});
|
||||
|
||||
export type ExportFullConfigResponse = typeof exportResponseSchema.infer;
|
||||
|
||||
const errorResponseSchema = type({
|
||||
error: "string",
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue