17 lines
330 B
Go
17 lines
330 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
"synlotto-website/handlers"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/", handlers.Home)
|
|
http.HandleFunc("/new", handlers.NewDraw)
|
|
http.HandleFunc("/submit", handlers.Submit)
|
|
|
|
log.Println("🚀 Lotto Tracker running on http://localhost:8080")
|
|
log.Fatal(http.ListenAndServe(":8080", nil))
|
|
}
|