aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/helpers/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src/helpers/api.js')
-rw-r--r--apps/workflowengine/src/helpers/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/src/helpers/api.js b/apps/workflowengine/src/helpers/api.js
index 878ae03acdd..6b28bfb6fb3 100644
--- a/apps/workflowengine/src/helpers/api.js
+++ b/apps/workflowengine/src/helpers/api.js
@@ -28,7 +28,7 @@ import { generateOcsUrl } from '@nextcloud/router'
const scopeValue = loadState('workflowengine', 'scope') === 0 ? 'global' : 'user'
const getApiUrl = (url) => {
- return generateOcsUrl('apps/workflowengine/api/v1/workflows', 2) + scopeValue + url + '?format=json'
+ return generateOcsUrl('apps/workflowengine/api/v1/workflows/{scopeValue}', { scopeValue }) + url + '?format=json'
}
export {