chore: update URLs

This commit is contained in:
trafficlunar 2025-01-16 21:58:23 +00:00
parent 9a3b3dd13b
commit c6367ae505

View file

@ -15,7 +15,7 @@ import (
) )
func getAllowedOrigins() []string { func getAllowedOrigins() []string {
allowedOrigins := []string{"https://axolotlmaid.com"} allowedOrigins := []string{"https://trafficlunar.net"}
if os.Getenv("DEVELOPMENT_MODE") == "true" { if os.Getenv("DEVELOPMENT_MODE") == "true" {
allowedOrigins = append(allowedOrigins, "http://localhost:4321") allowedOrigins = append(allowedOrigins, "http://localhost:4321")
@ -43,7 +43,7 @@ func NewRouter() {
})) }))
r.Get("/", func(w http.ResponseWriter, r *http.Request) { r.Get("/", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "https://axolotlmaid.com", http.StatusPermanentRedirect) http.Redirect(w, r, "https://trafficlunar.net", http.StatusPermanentRedirect)
}) })
r.Get("/visit-counter", handler.HandleGetVisitCounter) r.Get("/visit-counter", handler.HandleGetVisitCounter)