aboutsummaryrefslogtreecommitdiffstats
path: root/todolist
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-03-29 08:41:38 -0400
committerGrant Ammons <gammons@gmail.com>2017-03-29 08:41:38 -0400
commit428e0a0afa15444d1fba3d15ecdebb90e52cdd42 (patch)
tree3a2837115ed8d060d5db4c0aed6dd1c2a99657a7 /todolist
parentb036ca15caf784115386a82bf6d797e3a4554693 (diff)
Fix issue with web view
Diffstat (limited to 'todolist')
-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)
}