This commit is contained in:
Nikolai Petukhov
2024-09-14 09:38:49 +03:00
parent 76bbdbfb61
commit 098e0fe1da
7 changed files with 43 additions and 11 deletions

View File

@@ -1,13 +1,16 @@
import { getNavigations, getNavigationsValue } from '@ijl/cli';
import pkg from '../../package.json';
const baseUrl = getNavigationsValue(`${pkg.name}.main`);
const baseUrl = getNavigationsValue(`${(pkg as any).name}.main`);
const navs = getNavigations();
const makeUrl = url => baseUrl + url;
export const URLs = {
baseUrl,
auth: {
url: makeUrl(navs[`link.${pkg.name}.auth`]),
url: makeUrl(navs[`link.${(pkg as any).name}.auth`]),
},
account: {
url: makeUrl(navs[`link.${(pkg as any).name}.account`]),
}
};