Remove /test endpoint

This commit is contained in:
Midgard 2020-07-25 21:25:39 +02:00
parent c25356594a
commit a37e59ed02
Signed by: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 0 additions and 8 deletions

View file

@ -7,5 +7,4 @@ urlpatterns = [
path("", views.index, name="index"), path("", views.index, name="index"),
path("<int:event_id>/register", views.register, name="register"), path("<int:event_id>/register", views.register, name="register"),
path("<int:event_id>/deregister", views.deregister, name="deregister"), path("<int:event_id>/deregister", views.deregister, name="deregister"),
path("test/", views.view_score_stuff, name="score_stuff"),
] ]

View file

@ -20,13 +20,6 @@ def index(request):
return render(request, "events/index.html", {"events": events_data}) return render(request, "events/index.html", {"events": events_data})
def view_score_stuff(request):
return HttpResponse(
assign_reservations(),
content_type="text/plain; charset=utf-8"
)
def register(request, event_id): def register(request, event_id):
if request.method != "POST": if request.method != "POST":
return HttpResponse(status_code=405) return HttpResponse(status_code=405)