migration to chi

This commit is contained in:
2025-03-12 16:30:40 +03:00
parent ae81fbcce9
commit 45bb32e7a6
46 changed files with 1352 additions and 1323 deletions
+27
View File
@@ -0,0 +1,27 @@
package utils
import (
"os"
)
func GetFrontendURL() string {
if IsDevelopment() {
return os.Getenv("DEV_FRONTEND_URL")
}
return os.Getenv("FRONTEND_URL")
}
func IsDevelopment() bool {
return os.Getenv("DEVELOPMENT") == "true"
}
func IsDebug() bool {
return os.Getenv("DEBUG") == "true"
}
func Getenv(key, def string) string {
value := os.Getenv(key)
if value == "" {
return def
}
return value
}