diff options
author | xengineering <me@xengineering.eu> | 2023-03-31 20:41:48 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-03-31 21:46:53 +0200 |
commit | 39298f14d366b351708e7f5ef30d1b6575155792 (patch) | |
tree | 0973ec7cc3722661e3463280870f31a295b36dc8 /mux.go | |
parent | f1308a436040f3a72e058e10ec2693cfb599da30 (diff) | |
download | ceres-39298f14d366b351708e7f5ef30d1b6575155792.tar ceres-39298f14d366b351708e7f5ef30d1b6575155792.tar.zst ceres-39298f14d366b351708e7f5ef30d1b6575155792.zip |
Reduce to ID and Markdown
The upstream URL can be encoded easily by the user in the Markdown-based
description. The title can be parsed by the first found top-level
heading in the Markdown text.
Thus these two columns are no longer used. To avoid an additional
migration they will be kept in the database.
Diffstat (limited to 'mux.go')
-rw-r--r-- | mux.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -17,8 +17,6 @@ func recipeMux(w http.ResponseWriter, r *http.Request) { switch r.Method { case "GET": recipeGet(w, r) - case "POST": - recipePost(w, r) default: http.Error(w, "Bad Request", 400) } @@ -39,8 +37,6 @@ func addRecipesMux(w http.ResponseWriter, r *http.Request) { switch r.Method { case "GET": addRecipesGet(w, r) - case "POST": - addRecipesPost(w, r) default: http.Error(w, "Bad Request", 400) } |