diff --git a/src/api/common.js b/src/api/common.js index 233bacfd..4bcfb249 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -363,7 +363,7 @@ export async function apiGet (options = { resourceId: undefined, config: {} }) { - let path = options + let path = options.path if (options.resource && options.resourceId) { path = `api/${options.resource}/${options.resourceId}` } else if (options.resource) { @@ -376,7 +376,7 @@ export async function apiPost (options = { data: undefined, config: {} }) { - let path = options + let path = options.path if (options.resource) { path = `${options.resource}/` }