mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 06:52:04 +00:00
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:
1 parent
4cca62dce9
commit
bba38b8c66
6 files changed
+52
-28
No files matched your search
@@ -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";
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user