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

Function getNodeByName

packages/server/src/controllers/nodes/index.ts:24–34  ·  view source on GitHub ↗
(req: Request, res: Response, next: NextFunction)

Source from the content-addressed store, hash-verified

22}
23
24const getNodeByName = async (req: Request, res: Response, next: NextFunction) => {
25 try {
26 if (typeof req.params === 'undefined' || !req.params.name) {
27 throw new InternalFlowiseError(StatusCodes.PRECONDITION_FAILED, `Error: nodesController.getNodeByName - name not provided!`)
28 }
29 const apiResponse = await nodesService.getNodeByName(req.params.name, parseClientParam(req))
30 return res.json(apiResponse)
31 } catch (error) {
32 next(error)
33 }
34}
35
36const getNodesByCategory = async (req: Request, res: Response, next: NextFunction) => {
37 try {

Callers

nothing calls this directly

Calls 1

parseClientParamFunction · 0.85

Tested by

no test coverage detected