From 0af97685e7d8e73fbe985e235318f4610beef1bc Mon Sep 17 00:00:00 2001 From: Joshua Szepietowski Date: Tue, 9 Jul 2024 14:54:06 -0700 Subject: [PATCH] REST is best and nouns should be plural --- challenges/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/urls.py b/challenges/urls.py index 017dd0d..9cc65af 100644 --- a/challenges/urls.py +++ b/challenges/urls.py @@ -11,7 +11,7 @@ router = routers.DefaultRouter() router.register(r"sentences", SentenceViewSet) router.register(r"challenges", ChallengeViewSet) -router.register(r"challenge_result", ChallengeResultViewSet) +router.register(r"challenge_results", ChallengeResultViewSet) urlpatterns = [ path("api/", include(router.urls)),