MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / parseClientParam

Function parseClientParam

packages/server/src/controllers/nodes/index.ts:10–13  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

8
9// if req.query.client does not contain a valid client type, then return undefined so it won't filter the nodes unnecessarily
10const parseClientParam = (req: Request): ClientType | undefined => {
11 const raw = req.query.client as ClientType | undefined
12 return raw && VALID_CLIENT_TYPES.has(raw) ? (raw as ClientType) : undefined
13}
14
15const getAllNodes = async (req: Request, res: Response, next: NextFunction) => {
16 try {

Callers 3

getAllNodesFunction · 0.85
getNodeByNameFunction · 0.85
getNodesByCategoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected