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

Function isPublicChatflowRequest

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

* Validates if a request is for public chatflows (embedded chatbots) * @param url - The request URL * @returns boolean - True if it's a public chatflow request

(url: string)

Source from the content-addressed store, hash-verified

105 * @returns boolean - True if it's a public chatflow request
106 */
107function isPublicChatflowRequest(url: string): boolean {
108 return extractSlugFromUrl(url) !== null
109}
110
111/**
112 * Checks if the request is for the TTS generate endpoint.

Callers 1

getCorsOptionsFunction · 0.90

Calls 1

extractSlugFromUrlFunction · 0.85

Tested by

no test coverage detected