stubbed out go handlers

This commit is contained in:
sm
2013-05-08 22:57:52 -07:00
parent aff09ed2a1
commit 60fc35e6c8
3 changed files with 19 additions and 4 deletions
+2
View File
@@ -16,6 +16,8 @@ func main() {
flag.Parse()
http.Handle("/",
http.FileServer(http.Dir(*static_files)))
http.HandleFunc("/api/v0/attempt/", attempt)
http.HandleFunc("/api/v0/problem/", problem)
if err := http.ListenAndServe(*addr, nil); err != nil {
log.Fatal("ListenAndServe:", err)
}