mirror of
https://github.com/hanzoai/social.git
synced 2026-10-27 09:19:48 +00:00
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]>
19 lines
450 B
TypeScript
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>
|