should be Seocnd, not Last

This commit is contained in:
Stephen McQuay 2013-05-08 23:43:39 -07:00
parent 97f18f1df2
commit 4fa2e2bbd3
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import (
type prob struct {
Operation string
First int
Last int
Second int
}
type JsonHandler func(http.ResponseWriter, *http.Request)

View File

@ -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)
}