Added cleanup logic.

This commit is contained in:
2025-08-07 22:25:02 +02:00
parent afccf236fc
commit 716c6730b5
9 changed files with 115 additions and 16 deletions

16
controllers/index.go Normal file
View File

@@ -0,0 +1,16 @@
package controllers
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})
}