diff --git a/handlers.go b/handlers.go index 6ab46f8..80e8191 100644 --- a/handlers.go +++ b/handlers.go @@ -11,7 +11,7 @@ import ( type prob struct { Operation string First int - Last int + Second int } type JsonHandler func(http.ResponseWriter, *http.Request) diff --git a/main.go b/main.go index 4e1f35e..fe24991 100644 --- a/main.go +++ b/main.go @@ -21,8 +21,8 @@ func main() { flag.Parse() http.Handle("/", http.FileServer(http.Dir(*static_files))) - http.HandleFunc("/api/v0/attempt/", JsonHandler(attempt)) http.Handle("/api/v0/problem/", JsonHandler(problem)) + http.Handle("/api/v0/attempt/", JsonHandler(attempt)) if err := http.ListenAndServe(*addr, nil); err != nil { log.Fatal("ListenAndServe:", err) }