Files
Cursor Agentandz 5d6e439588 Serve Postiz clients from the Hanzo APIs those tools already map to.
Image, video, clipping, library uploads, provider actions, and per-post
settings call /v1 instead of answering that Hanzo does not have them.
The same process serves the SPA and /mcp, /api/mcp, and /public/v1.

Co-authored-by: z <[email protected]>
2026-10-26 13:12:39 +00:00

19 lines
450 B
TypeScript

import type { IncomingMessage, ServerResponse } from 'node:http'
export function isPostizPath(url: string | undefined): boolean
export function postizMiddleware(
req: IncomingMessage,
res: ServerResponse,
next: () => void,
): void
export function handlePostiz(
req: IncomingMessage,
res: ServerResponse,
options?: {
client?: unknown
fetchImpl?: typeof fetch
base?: string
fetchRemote?: typeof fetch
},
): Promise<void>