diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |