(req: Request, res: Response, next: NextFunction)
| 52 | } |
| 53 | |
| 54 | const getAllTools = async (req: Request, res: Response, next: NextFunction) => { |
| 55 | try { |
| 56 | const { page, limit } = getPageAndLimitParams(req) |
| 57 | const apiResponse = await toolsService.getAllTools(req.user?.activeWorkspaceId, page, limit) |
| 58 | return res.json(apiResponse) |
| 59 | } catch (error) { |
| 60 | next(error) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | const getToolById = async (req: Request, res: Response, next: NextFunction) => { |
| 65 | try { |
nothing calls this directly
no test coverage detected