api url from config

This commit is contained in:
2024-05-18 13:26:01 +03:00
parent ee88e832a6
commit 2c0e724539
10 changed files with 2268 additions and 10 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
import { getNavigationsValue } from '@ijl/cli';
import { getNavigationsValue, getConfigValue } from '@ijl/cli';
import { generatePath } from 'react-router-dom';
const baseUrl = getNavigationsValue('r-and-m.main');
@@ -13,5 +13,7 @@ export const URLs = {
getUrl: (charId: number) => generatePath(`${baseUrl}${getNavigationsValue('r-and-m.character.detail')}`, { charId })
}
},
api: {},
api: {
main: getConfigValue('r-and-m.api')
},
}