MCPcopy
hub / github.com/FlowiseAI/Flowise / isTTSGenerateRequest

Function isTTSGenerateRequest

packages/server/src/utils/domainValidation.ts:117–119  ·  view source on GitHub ↗

* Checks if the request is for the TTS generate endpoint. * This endpoint passes chatflowId in the request body rather than the URL path. * @param url - The request URL * @returns boolean - True if it's the TTS generate endpoint

(url: string)

Source from the content-addressed store, hash-verified

115 * @returns boolean - True if it's the TTS generate endpoint
116 */
117function isTTSGenerateRequest(url: string): boolean {
118 return url.split('?')[0] === TTS_GENERATE_PATH
119}
120
121/**
122 * Get the custom error message for unauthorized origin

Callers 1

getCorsOptionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected