Delete task and toggle edit state

This commit is contained in:
Emanuel Turis
2023-10-20 09:59:02 +03:00
parent d1f37d7b0e
commit b901b31d88
6 changed files with 129 additions and 4 deletions

View File

@@ -28,5 +28,7 @@ func main() {
r.Get("/", handleGetTasks)
r.Post("/tasks", handleCreateTask)
r.Put("/tasks/{id}/toggle", handleToggleTask)
r.Delete("/tasks/{id}", handleDeleteTask)
r.Get("/tasks/{id}/edit", handleEditTask)
http.ListenAndServe("localhost:3000", r)
}