diff options
Diffstat (limited to 'net/net.go')
| -rw-r--r-- | net/net.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -17,12 +17,12 @@ func errLog(w http.ResponseWriter, err error, logInfo string, httpInfo string) { func game(w http.ResponseWriter, req *http.Request) { game := bingo.Game{ - Length: 3, + Length: 5, FreeSquare: false, } - tiles := make([]bingo.Tile, 9) - for i := range 9 { + tiles := make([]bingo.Tile, 25) + for i := range 25 { tiles[i].Text = fmt.Sprintf("Tile %d", i) } @@ -76,6 +76,7 @@ func NewMux() *http.ServeMux { mux.Handle("GET /", http.HandlerFunc(home)) mux.Handle("GET /bingo", http.HandlerFunc(game)) + mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) return mux } |
