aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-09-28 04:01:28 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-09-28 04:01:28 -0400
commit5cf139eac317f8934deff21aa3668bd3616962b9 (patch)
tree74fb2125a5c710a9a0c7f5e182489b414d5216fe /net
parentafe79e8430302808004ac2f5b5cc7d21d4d5d170 (diff)
Add basic styling to bingo pagebingo_client
Diffstat (limited to 'net')
-rw-r--r--net/net.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/net.go b/net/net.go
index 228d22d..8122343 100644
--- a/net/net.go
+++ b/net/net.go
@@ -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
}