(req: Request, res: Response, next: NextFunction)
| 22 | } |
| 23 | |
| 24 | const 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 | |
| 36 | const getNodesByCategory = async (req: Request, res: Response, next: NextFunction) => { |
| 37 | try { |
nothing calls this directly
no test coverage detected