Compare commits

..

2 Commits

Author SHA1 Message Date
ducoterra
54c6336e22 proper slash handling in button.js 2020-04-25 17:07:45 -04:00
ducoterra
7da888aa09 proper / on button 2020-04-25 16:37:53 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ const count = document.getElementById("COUNT");
button.addEventListener("click", event => {
button.disabled = true;
button.classList.add("is-loading");
fetch('/button', {
fetch('/button/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',

View File

@@ -2,5 +2,5 @@ from django.urls import path
from . import views
urlpatterns = [
path('button', views.button, name = 'button'),
path('button/', views.button, name = 'button'),
]