From 2e4a52ededed1a88779c49d86057b12d1ff56d64 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 29 Sep 2023 12:24:03 +0800 Subject: [PATCH] Shorten student status url endpoints --- stude/student_status/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stude/student_status/urls.py b/stude/student_status/urls.py index 496e0ab..a65d21e 100644 --- a/stude/student_status/urls.py +++ b/stude/student_status/urls.py @@ -3,13 +3,13 @@ from rest_framework.routers import DefaultRouter from .views import StudentStatusAPIView, ActiveStudentStatusListAPIView, StudentStatusListByStudentStatusLocation, StudentStatusListByCurrentLocation router = DefaultRouter() -router.register(r'filter/near_current_location', StudentStatusListByCurrentLocation, +router.register(r'near_current_location/', StudentStatusListByCurrentLocation, basename='Student Status based on current location') urlpatterns = [ path('self/', StudentStatusAPIView.as_view()), path('list/', ActiveStudentStatusListAPIView.as_view()), - path('filter/near_student_status', + path('near/', StudentStatusListByStudentStatusLocation.as_view()), path('', include(router.urls)), ]