6 lines
172 B
TypeScript
6 lines
172 B
TypeScript
export function getApiUrl(path: string): string {
|
|
const API_BASE_URL = useRuntimeConfig().public.apiBase;
|
|
console.log(API_BASE_URL);
|
|
return `${API_BASE_URL}/${path}`;
|
|
}
|