- Fix Meilisearch indexing to use authors[] array instead of scalar author field - Join series_metadata to include series-level authors in search documents - Configure searchable attributes (title, authors, series) in Meilisearch - Convert EditSeriesForm and EditBookForm from inline forms to modals - Add tabbed navigation (General / Integrations) to Settings page - Add Force Search Resync button (POST /settings/search/resync) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
330 B
TypeScript
12 lines
330 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { forceSearchResync } from "@/lib/api";
|
|
|
|
export async function POST() {
|
|
try {
|
|
const data = await forceSearchResync();
|
|
return NextResponse.json(data);
|
|
} catch (error) {
|
|
return NextResponse.json({ error: "Failed to trigger search resync" }, { status: 500 });
|
|
}
|
|
}
|