chore: add missing migrations and routes
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 6s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 17:35:49 +01:00
parent 4c10702fb7
commit fd0f57824d
5 changed files with 466 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { NextResponse } from "next/server";
import { apiFetch } from "@/lib/api";
export async function PATCH(
request: Request,
{ params }: { params: Promise<{ id: string }> }
) {
const { id } = await params;
try {
const body = await request.json();
const data = await apiFetch(`/libraries/${id}/reading-status-provider`, {
method: "PATCH",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
});
return NextResponse.json(data);
} catch (error) {
const message = error instanceof Error ? error.message : "Failed to update reading status provider";
return NextResponse.json({ error: message }, { status: 500 });
}
}