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,
|
fullExportDto,
|
||||||
getUpdatesDto,
|
getUpdatesDto,
|
||||||
systemInfoDto,
|
systemInfoDto,
|
||||||
|
type ExportFullConfigResponse,
|
||||||
type SystemInfoDto,
|
type SystemInfoDto,
|
||||||
type UpdateInfoDto,
|
type UpdateInfoDto,
|
||||||
} from "./system.dto";
|
} from "./system.dto";
|
||||||
|
|
@ -79,4 +80,8 @@ export const systemController = new Hono()
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
return c.json({ message: "Incorrect password" }, 401);
|
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(),
|
.optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export type ExportFullConfigResponse = typeof exportResponseSchema.infer;
|
||||||
|
|
||||||
const errorResponseSchema = type({
|
const errorResponseSchema = type({
|
||||||
error: "string",
|
error: "string",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue