issues/27: generic content CRUD with field error widgets

This commit is contained in:
Valery Petrov
2026-05-20 14:08:00 +03:00
committed by Valeriy Petrov
parent 90779fdc08
commit 67388d9628
34 changed files with 1156 additions and 2898 deletions
+7
View File
@@ -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}`
}