summaryrefslogtreecommitdiff
path: root/mux.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-01 16:03:49 +0200
committerxengineering <me@xengineering.eu>2023-04-01 18:21:27 +0200
commit88107366bce6b7f7c788171a18c40ad102904ff4 (patch)
tree1477a16e0d4e4b2151c23c0194ed9860fe5a6eb3 /mux.go
parenteec9ddfd687a871880628b4a5e9b3c0541b534e2 (diff)
downloadceres-88107366bce6b7f7c788171a18c40ad102904ff4.tar
ceres-88107366bce6b7f7c788171a18c40ad102904ff4.tar.zst
ceres-88107366bce6b7f7c788171a18c40ad102904ff4.zip
Implement recipe deletion
Diffstat (limited to 'mux.go')
-rw-r--r--mux.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/mux.go b/mux.go
index 9d9d09a..9fb0dad 100644
--- a/mux.go
+++ b/mux.go
@@ -33,6 +33,17 @@ func recipeEditMux(w http.ResponseWriter, r *http.Request) {
}
}
+func recipeConfirmDeletionMux(w http.ResponseWriter, r *http.Request) {
+ switch r.Method {
+ case "GET":
+ recipeConfirmDeletionGet(w, r)
+ case "POST":
+ recipeConfirmDeletionPost(w, r)
+ default:
+ http.Error(w, "Bad Request", 400)
+ }
+}
+
func addRecipesMux(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "GET":