api url from config
This commit is contained in:
@@ -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')
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user