refactor(types): move BackupRow and BackupsList out of route handler into src/types/backups.ts

Resolves the single component → route-handler import in the codebase
(`components/admin/backups-section.tsx ← app/api/admin/backups/route.ts`)
flagged by the v1.4.39 org audit (recommendation #2). The DTOs now live
in `src/types/backups.ts`; the route handler keeps owning the HTTP
contract and re-imports the shared types from there.
This commit is contained in:
Marc-André Bombeck committed 2026-05-21 17:10:38 +02:00
1 parent 4cca62dce9
commit bba38b8c66
6 files changed
+52 -28

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { formatDateTime } from "@/lib/format";
import { useFormatters, useTranslations } from "@/lib/i18n/context";
import type { BackupRow, BackupsList } from "@/app/api/admin/backups/route";
import type { BackupRow, BackupsList } from "@/types/backups";
import { getApiErrorMessage } from "./_shared";
/**