rlz-engine 1.0.12 → 1.0.13
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/dist/client/api/api.js +2 -2
- package/package.json +1 -1
package/dist/client/api/api.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getFrontConfig } from '../config';
|
|
2
|
-
const API_DOMAIN = getFrontConfig().apiDomain;
|
|
3
2
|
export class Forbidden extends Error {
|
|
4
3
|
constructor(url) {
|
|
5
4
|
super(`Forbidden: ${url}`);
|
|
6
5
|
}
|
|
7
6
|
}
|
|
8
7
|
function url(version, path, queryString) {
|
|
9
|
-
const
|
|
8
|
+
const domain = getFrontConfig().apiDomain;
|
|
9
|
+
const base = `${domain}api/${version}/${path}`;
|
|
10
10
|
if (queryString === null) {
|
|
11
11
|
return base;
|
|
12
12
|
}
|