diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-21 16:42:33 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-21 16:42:43 +0900 |
| commit | e3373eb48b8cd5eef61a59d8ff590db184612294 (patch) | |
| tree | e9b0af769f858a49b88cb7c06eccd4d7e0518fc3 /backend | |
| parent | a46f583437e9b66ebec6fa22e27567a71b17b497 (diff) | |
| download | iosdc-japan-2024-albatross-e3373eb48b8cd5eef61a59d8ff590db184612294.tar.gz iosdc-japan-2024-albatross-e3373eb48b8cd5eef61a59d8ff590db184612294.tar.zst iosdc-japan-2024-albatross-e3373eb48b8cd5eef61a59d8ff590db184612294.zip | |
remove racing pages
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/main.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/backend/main.go b/backend/main.go index 5661ed6..f0121ef 100644 --- a/backend/main.go +++ b/backend/main.go @@ -225,30 +225,6 @@ func main() { serveWs(hub, w, r, team) }) - server.HandleFunc("GET /race/{$}", func(w http.ResponseWriter, r *http.Request) { - http.ServeFile(w, r, "./public/index.html") - }) - - server.HandleFunc("POST /race/{$}", func(w http.ResponseWriter, r *http.Request) { - handleRacePost(w, r) - }) - - server.HandleFunc("GET /race/{gameId}/watch/{$}", func(w http.ResponseWriter, r *http.Request) { - http.ServeFile(w, r, "./public/index.html") - }) - - server.HandleFunc("GET /sock/race/{gameId}/watch/{$}", func(w http.ResponseWriter, r *http.Request) { - // TODO - }) - - server.HandleFunc("GET /race/{gameId}/{team}/{$}", func(w http.ResponseWriter, r *http.Request) { - http.ServeFile(w, r, "./public/index.html") - }) - - server.HandleFunc("GET /sock/race/{gameId}/{team}/{$}", func(w http.ResponseWriter, r *http.Request) { - // TODO - }) - defer func() { for _, hub := range gameHubs { hub.Close() |
