import { publishPress } from "@/lib/library/presses.mjs"; import { ask, press } from "@/lib/library/route"; export const dynamic = "force-dynamic"; // POST { lib, topic, dryRun: true, channel? } -> what would be written: { channel, creates, posts, files, bytes, textOnly, noLongerKept, confirm, sentence, … } // POST { lib, topic, confirm, channel? } -> published, when it is still what the dry run showed // // THE POSTS LIBRARY PAGE'S PUBLISH (lane x-trending-publish): the editor's // `publish-trending`, the OPERATOR's, in two presses (the page's press only: // lib/library/route.ts). The topic's posts the operator kept go into an // ordinary posts channel on NO site; umtool writes nothing itself, and adding // the channel to a site stays a separate act in the editor. export async function POST(request: Request) { return press(request, (body) => publishPress(ask, body)); }