import { remoteListingAction } from "../../../channels/[slug]/pipelineActions"; import { jobResponse, ops, reqSlug } from "../_lib"; export const dynamic = "force-dynamic"; // POST { slug } -> { ok: true, jobId } // // An Odysee or BitChute channel's listing, diffed against what it holds // (controller/remoteListing.ts): one flat-playlist read on the platform's own // queue, paced, nothing written. The job's log ends with // `@@remote-listing {slug, platform, url, listedAt, listed, unparsed, held, // notHeld: [{id, url}], heldNotListed: [id]}`; `pnpm ops get remote-listing // ` waits for it and prints that JSON on stdout. export async function POST(request: Request) { return ops(request, ["slug"], async (body) => jobResponse(await remoteListingAction(reqSlug(body, "slug")))); }