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