@veritree/services 2.35.2-0 → 2.35.4-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/endpoints/crumbs.js +2 -2
- package/src/helpers/api.js +1 -2
package/package.json
CHANGED
package/src/endpoints/crumbs.js
CHANGED
|
@@ -7,8 +7,8 @@ class CrumbsApi extends Api {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
mapData(crumbId) {
|
|
10
|
-
const all = async () => {
|
|
11
|
-
const url = `${this.getUrl()}/${crumbId}/map-data`;
|
|
10
|
+
const all = async (params) => {
|
|
11
|
+
const url = `${this.getUrl()}/${crumbId}/map-data${this.getUrlParams(params)}`;
|
|
12
12
|
return await this.get(url);
|
|
13
13
|
};
|
|
14
14
|
return {
|
package/src/helpers/api.js
CHANGED
|
@@ -83,8 +83,7 @@ export default class Api {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
async single(id, args) {
|
|
86
|
-
const
|
|
87
|
-
const url = `${this.getUrl(id)}${params}`;
|
|
86
|
+
const url = `${this.getUrl(id)}${this.getUrlParams(args)}`;
|
|
88
87
|
return await this.get(url);
|
|
89
88
|
}
|
|
90
89
|
|