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

Function getAllVariables

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

Source from the content-addressed store, hash-verified

55}
56
57const getAllVariables = async (req: Request, res: Response, next: NextFunction) => {
58 try {
59 const { page, limit } = getPageAndLimitParams(req)
60 const workspaceId = req.user?.activeWorkspaceId
61 if (!workspaceId) {
62 throw new InternalFlowiseError(
63 StatusCodes.NOT_FOUND,
64 `Error: variablesController.getAllVariables - workspace ${workspaceId} not found!`
65 )
66 }
67 const apiResponse = await variablesService.getAllVariables(workspaceId, page, limit)
68 return res.json(apiResponse)
69 } catch (error) {
70 next(error)
71 }
72}
73
74const updateVariable = async (req: Request, res: Response, next: NextFunction) => {
75 try {

Callers

nothing calls this directly

Calls 1

getPageAndLimitParamsFunction · 0.90

Tested by

no test coverage detected