10 lines
283 B
TypeScript
10 lines
283 B
TypeScript
import type { APIEvent } from "@solidjs/start/server"
|
|
import { handler } from "~/routes/zen/util/handler"
|
|
|
|
export function POST(input: APIEvent) {
|
|
return handler(input, {
|
|
format: "anthropic",
|
|
parseApiKey: (headers: Headers) => headers.get("x-api-key") ?? undefined,
|
|
})
|
|
}
|