diff options
author | Emile <git@emile.space> | 2024-11-08 11:39:04 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2024-11-08 11:39:04 +0100 |
commit | c685cc8f25adc5b2b72e4bda185fef7ec8dd6592 (patch) | |
tree | cf7e9d91eb5219349aec81b29f043b5d72d08af8 /src/main.go | |
parent | 8ffae39cd303d487cf20177fab2f7b9aa29f1d77 (diff) |
push all, yolo
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 20c245a..c789cf8 100644 --- a/src/main.go +++ b/src/main.go @@ -30,7 +30,7 @@ func initFlags() { flag.StringVar(&logFilePath, "logfilepath", "./server.log", "The path to the log file") flag.StringVar(&databasePath, "databasepath", "./main.db", "The path to the main database") - flag.StringVar(&sessiondbPath, "sessiondbpath", "./sesions.db", "The path to the session database") + flag.StringVar(&sessiondbPath, "sessiondbpath", "./sessions.db", "The path to the session database") flag.StringVar(&templatesPath, "templates", "./templates", "The path to the templates used") } @@ -92,7 +92,7 @@ func main() { auth_needed.HandleFunc("/battle/quick", battleQuickHandler) auth_needed.HandleFunc("/battle/{id}/submit", battleSubmitHandler) auth_needed.HandleFunc("/battle/{id}/run", battleRunHandler) - // auth_needed.HandleFunc("/battle/{id}/delete", battleDeleteHandler) + auth_needed.HandleFunc("/battle/{id}/delete", battleDeleteHandler) log.Printf("[i] HTTP Server running on %s:%d\n", host, port) log.Fatal(http.ListenAndServe(fmt.Sprintf("%s:%d", host, port), r)) |