2023-08-06 14:19:55 +08:00
|
|
|
from django.urls import path, include
|
|
|
|
from rest_framework.routers import DefaultRouter
|
2023-09-01 14:09:19 +08:00
|
|
|
from .views import StudentStatusAPIView, ActiveStudentStatusListAPIView, StudentStatusListByStudentStatusLocation, StudentStatusListByCurrentLocation
|
|
|
|
|
|
|
|
router = DefaultRouter()
|
|
|
|
router.register(r'filter/near_current_location', StudentStatusListByCurrentLocation,
|
|
|
|
basename='Student Status based on current location')
|
2023-06-26 23:50:55 +08:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('self/', StudentStatusAPIView.as_view()),
|
2023-07-01 15:47:28 +08:00
|
|
|
path('list/', ActiveStudentStatusListAPIView.as_view()),
|
2023-09-01 14:09:19 +08:00
|
|
|
path('filter/near_student_status',
|
|
|
|
StudentStatusListByStudentStatusLocation.as_view()),
|
|
|
|
path('', include(router.urls)),
|
2023-06-26 23:50:55 +08:00
|
|
|
]
|