mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
17 lines
424 B
JavaScript
17 lines
424 B
JavaScript
import { handleTts } from "@/sse/handlers/tts.js";
|
|
|
|
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/audio/speech - OpenAI-compatible TTS endpoint */
|
|
export async function POST(request) {
|
|
return await handleTts(request);
|
|
}
|