diff options
author | xengineering <me@xengineering.eu> | 2024-03-03 16:56:42 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-03-03 16:56:42 +0100 |
commit | 6a4f1aee179a25b62b02deffd0ad97914cbcca87 (patch) | |
tree | d20b1a8aad1cba2bd93967a5423683d2b6d1513e /view/html | |
parent | bee8b4cc59fd24fc1b924a6160b8eaa221405aeb (diff) | |
download | ceres-6a4f1aee179a25b62b02deffd0ad97914cbcca87.tar ceres-6a4f1aee179a25b62b02deffd0ad97914cbcca87.tar.zst ceres-6a4f1aee179a25b62b02deffd0ad97914cbcca87.zip |
Add ID to URL in recipe updates
This makes the update URL more consistent with the other ones. A check
ensures consistency of the URL and JSON ID values.
Diffstat (limited to 'view/html')
-rw-r--r-- | view/html/recipe-edit.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html index 2513be8..d7d9b45 100644 --- a/view/html/recipe-edit.html +++ b/view/html/recipe-edit.html @@ -10,7 +10,7 @@ </header> <body> <main> - <form action="/recipe?method=update"> + <form action="/recipe/{{.Id}}"> <input type="hidden" name="id" value="{{.Id}}"> <p> |