diff options
Diffstat (limited to 'apps/workflowengine/src/helpers/api.js')
-rw-r--r-- | apps/workflowengine/src/helpers/api.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/workflowengine/src/helpers/api.js b/apps/workflowengine/src/helpers/api.js index ee4e8c7a520..76861d3bb35 100644 --- a/apps/workflowengine/src/helpers/api.js +++ b/apps/workflowengine/src/helpers/api.js @@ -19,10 +19,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ -const scopeValue = OCP.InitialState.loadState('workflowengine', 'scope') === 0 ? 'global' : 'user' import { loadState } from '@nextcloud/initial-state' +const scopeValue = loadState('workflowengine', 'scope') === 0 ? 'global' : 'user' + const getApiUrl = (url) => { return OC.linkToOCS('apps/workflowengine/api/v1/workflows', 2) + scopeValue + url + '?format=json' } |