aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/webapp.go
diff options
context:
space:
mode:
Diffstat (limited to 'todolist/webapp.go')
-rw-r--r--todolist/webapp.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/todolist/webapp.go b/todolist/webapp.go
index dcece3a..b91ba78 100644
--- a/todolist/webapp.go
+++ b/todolist/webapp.go
@@ -109,5 +109,6 @@ func SaveTodos(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
log.Fatal("encountered an error parsing json, ", err)
}
app := NewApp()
+ app.TodoStore.Load()
app.TodoStore.Save(todos)
}