mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
Shorten student status url endpoints
This commit is contained in:
parent
c0992267b4
commit
2e4a52eded
1 changed files with 2 additions and 2 deletions
|
@ -3,13 +3,13 @@ from rest_framework.routers import DefaultRouter
|
||||||
from .views import StudentStatusAPIView, ActiveStudentStatusListAPIView, StudentStatusListByStudentStatusLocation, StudentStatusListByCurrentLocation
|
from .views import StudentStatusAPIView, ActiveStudentStatusListAPIView, StudentStatusListByStudentStatusLocation, StudentStatusListByCurrentLocation
|
||||||
|
|
||||||
router = DefaultRouter()
|
router = DefaultRouter()
|
||||||
router.register(r'filter/near_current_location', StudentStatusListByCurrentLocation,
|
router.register(r'near_current_location/', StudentStatusListByCurrentLocation,
|
||||||
basename='Student Status based on current location')
|
basename='Student Status based on current location')
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('self/', StudentStatusAPIView.as_view()),
|
path('self/', StudentStatusAPIView.as_view()),
|
||||||
path('list/', ActiveStudentStatusListAPIView.as_view()),
|
path('list/', ActiveStudentStatusListAPIView.as_view()),
|
||||||
path('filter/near_student_status',
|
path('near/',
|
||||||
StudentStatusListByStudentStatusLocation.as_view()),
|
StudentStatusListByStudentStatusLocation.as_view()),
|
||||||
path('', include(router.urls)),
|
path('', include(router.urls)),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue