issues/27: generic content CRUD with field error widgets
This commit is contained in:
committed by
Valeriy Petrov
parent
90779fdc08
commit
67388d9628
@@ -0,0 +1,7 @@
|
||||
export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'https://api.sovamed.ru'
|
||||
|
||||
export const apiUrl = (path) => {
|
||||
const base = API_BASE_URL.replace(/\/$/, '')
|
||||
const suffix = path.startsWith('/') ? path : `/${path}`
|
||||
return `${base}${suffix}`
|
||||
}
|
||||
Reference in New Issue
Block a user