mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: menu links issue
This commit is contained in:
parent
fee546cbd0
commit
02a5ed6354
2 changed files with 19 additions and 5 deletions
|
|
@ -4,3 +4,12 @@ const LEARNHOUSE_BACKEND_URL = "http://localhost:1338/";
|
|||
export const getAPIUrl = () => LEARNHOUSE_API_URL;
|
||||
|
||||
export const getBackendUrl = () => LEARNHOUSE_BACKEND_URL;
|
||||
|
||||
export const getUriWithOrg = ( orgslug: string, path: string) => {
|
||||
return `http://localhost:3000/org/${orgslug}${path}`;
|
||||
};
|
||||
|
||||
export const getOrgFromUri = (uri: any) => {
|
||||
let org = uri.match(/\/org\/(.*?)\//)[1];
|
||||
return org;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue