diff options
author | Emile <git@emile.space> | 2024-08-23 21:35:55 +0200 |
---|---|---|
committer | Emile <git@emile.space> | 2024-08-23 21:35:55 +0200 |
commit | c26dbb85981aee7c1f1fa1f37972126e5ac15e49 (patch) | |
tree | bd256ce78b3f684038bd3e805f980f0ba1f8b17e /src/main.go | |
parent | f2f14353432c70f11973cdf865a002a267c3bd92 (diff) |
Diffstat (limited to 'src/main.go')
-rw-r--r-- | src/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.go b/src/main.go index 65a3212..189468a 100644 --- a/src/main.go +++ b/src/main.go @@ -86,9 +86,9 @@ func main() { auth_needed.HandleFunc("/user/{id}", userHandler) auth_needed.HandleFunc("/user/{id}/profile", profileHandler) - auth_needed.HandleFunc("/battle", battlesHandler) + r.HandleFunc("/battle", battlesHandler) auth_needed.HandleFunc("/battle/new", battleNewHandler) - auth_needed.HandleFunc("/battle/{id}", battleSingleHandler) + r.HandleFunc("/battle/{id}", battleSingleHandler) auth_needed.HandleFunc("/battle/{id}/submit", battleSubmitHandler) log.Printf("[i] HTTP Server running on %s:%d\n", host, port) |