Added dashboard page layout & sites overview
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export const API_BASE_URL = '/api/v1';
|
||||
|
||||
export const makeApiUrl = (endpoint: string) => {
|
||||
const base = API_BASE_URL.endsWith('/') ? API_BASE_URL.slice(0, -1) : API_BASE_URL;
|
||||
const path = endpoint.startsWith('/') ? endpoint : `/${endpoint}`;
|
||||
return `${base}${path}`;
|
||||
};
|
||||
Reference in New Issue
Block a user