api9nin / src /app /api /v1 /web /fetch /route.js
github-actions[bot]
deploy from github actions 2026-06-18
c8ae75d
Raw
History Blame Contribute Delete
462 Bytes
import { handleFetch } from "@/sse/handlers/fetch.js";
/**
* Handle CORS preflight
*/
export async function OPTIONS() {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, OPTIONS",
"Access-Control-Allow-Headers": "*"
}
});
}
/**
* POST /v1/web/fetch - Web URL fetch/extract endpoint
*/
export async function POST(request) {
return await handleFetch(request);
}