summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index a414db5..981302f 100644
--- a/main.go
+++ b/main.go
@@ -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 {