From 4fa2e2bbd36e712c36a095c215e2cf1b23413d12 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Wed, 8 May 2013 23:43:39 -0700 Subject: [PATCH] should be Seocnd, not Last --- handlers.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }