init
This commit is contained in:
16
main.go
Normal file
16
main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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))
|
||||
}
|
||||
Reference in New Issue
Block a user