diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -119,6 +119,7 @@ func main() { http.HandleFunc("/export", handleExport) http.HandleFunc("/auth", handleAuth) http.HandleFunc("/ws", handleWs) + http.HandleFunc("/state/{s}", handleState) var l net.Listener @@ -176,6 +177,11 @@ func main() { log.Fatal(err) } + log.Println("Loading state") + if err := loadState(); err != nil { + log.Fatal(err) + } + log.Println("Setting up courses") err = setupCourses() if err != nil { |