Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-02-17 13:30:04 +03:00
parent 3bbb8539c7
commit 46c617b8f5

View File

@@ -616,8 +616,16 @@ func main() {
),
)
log.Println("✅ Server çalışıyor: http://localhost:8080")
log.Fatal(http.ListenAndServe(":8080", handler))
port := strings.TrimSpace(os.Getenv("HTTPPORT"))
if port == "" {
port = "8080"
}
if !strings.HasPrefix(port, ":") {
port = ":" + port
}
log.Println("Server calisiyor: http://localhost" + port)
log.Fatal(http.ListenAndServe(port, handler))
}
func mountSPA(r *mux.Router) {