summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-04-21 16:44:11 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-04-21 16:44:11 +0200
commit9594dac4ac43b4e038d307da59709887e24eb441 (patch)
tree5fbfe16cec32071d93fde27f87f7ca574fe9dffd
parent716f824dc24b5427b2f11cec9519dd1284418131 (diff)
downloadshopping-list-9594dac4ac43b4e038d307da59709887e24eb441.tar.gz
shopping-list-9594dac4ac43b4e038d307da59709887e24eb441.zip
fix app routing
-rw-r--r--templates/template.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/template.html b/templates/template.html
index 5f56372..5c0c84f 100644
--- a/templates/template.html
+++ b/templates/template.html
@@ -176,7 +176,7 @@
                 {{ end }}
 
                 {{ .Text }}
-                <form action="/toggle" method="POST">
+                <form action="toggle" method="POST">
                     <input type="hidden" name="id" value="{{ .ID }}" />
                     <button type="submit" />
                 </form>
@@ -184,13 +184,13 @@
             {{ end }}
         </ul>
 
-        <form action="/create" method="POST">
+        <form action="create" method="POST">
             <div class="input-container">
                 <input type="text" id="newItem" name="newItem" tabindex="0"/>
             </div>
         </form>
 
-        <form action="/delete" method="POST">
+        <form action="delete" method="POST">
             <button type="submit" class="delete-button">Delete Selected Items</button>
         </form>