Files
fitra-backend/endpoints/index.go
2025-08-07 22:13:39 +02:00

16 lines
271 B
Go

package endpoints
import (
"net/http"
"os"
"github.com/gin-gonic/gin"
)
func HandleIndex(c *gin.Context) {
baseURL := os.Getenv("BASE_URL")
if baseURL == "" {
baseURL = "http://localhost:8080"
}
c.HTML(http.StatusOK, "index.html", gin.H{"BaseURL": baseURL})
}