aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.go b/main.go
index 4afac06..00c8ae7 100644
--- a/main.go
+++ b/main.go
@@ -116,13 +116,13 @@ func main() {
)
log.Println("Registering handlers")
- http.HandleFunc("/{$}", handleIndex)
- http.HandleFunc("/export/choices", handleExportChoices)
- http.HandleFunc("/export/students", handleExportStudents)
- http.HandleFunc("/auth", handleAuth)
http.HandleFunc("/ws", handleWs)
- http.HandleFunc("/state/{s}", handleState)
- http.HandleFunc("/newcourses", handleNewCourses)
+ setHandler("/{$}", handleIndex)
+ setHandler("/export/choices", handleExportChoices)
+ setHandler("/export/students", handleExportStudents)
+ setHandler("/auth", handleAuth)
+ setHandler("/state/{s}", handleState)
+ setHandler("/newcourses", handleNewCourses)
var l net.Listener