diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-04-21 15:23:31 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-04-21 15:23:31 +0200 |
| commit | 0afc83fd6402ef8e4beb29aa77b89cae78f64b44 (patch) | |
| tree | 5ed04313eb5a0de667de4922bdc3d5d96d0213b9 /main.go | |
| parent | f6fa3f751aac9cdb57f3d80197505943ebbfdf02 (diff) | |
| download | shopping-list-0afc83fd6402ef8e4beb29aa77b89cae78f64b44.tar.gz shopping-list-0afc83fd6402ef8e4beb29aa77b89cae78f64b44.zip | |
create needed requests and add them to the template.html
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go index a2372f3..415c7bf 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,10 @@ func main() { }) }) - r.GET("/shopping", shopping_list.LoadElements) + r.GET("/", shopping_list.LoadElements) + r.POST("/create", shopping_list.CreateEntry) + r.POST("/delete", shopping_list.DeleteEntries) + r.POST("/toggle", shopping_list.ToggleEntry) r.Run() } |