Lots of changes, still more to do

This commit is contained in:
2025-03-27 15:03:43 +00:00
parent 27b862b84b
commit e13b375af7
8 changed files with 198 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import (
"synlotto-website/helpers"
"synlotto-website/middleware"
"synlotto-website/models"
services "synlotto-website/services/admin"
"synlotto-website/storage"
"github.com/gorilla/csrf"
@@ -38,6 +39,9 @@ func main() {
mux.HandleFunc("/account/tickets/add_ticket", handlers.AddTicket(db))
mux.HandleFunc("/account/tickets/my_tickets", handlers.GetMyTickets(db))
// Admin Pages
mux.HandleFunc("/admin/match", services.AdminMatchHandler)
log.Println("🌐 Running on http://localhost:8080")
http.ListenAndServe(":8080", helpers.RateLimit(csrfMiddleware(mux)))
}