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()
|
2023-09-29 12:24:03 +08:00
|
|
|
router.register(r'near_current_location/', StudentStatusListByCurrentLocation,
|
2023-09-01 14:09:19 +08:00
|
|
|
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-29 12:24:03 +08:00
|
|
|
path('near/',
|
2023-09-01 14:09:19 +08:00
|
|
|
StudentStatusListByStudentStatusLocation.as_view()),
|
|
|
|
path('', include(router.urls)),
|
2023-06-26 23:50:55 +08:00
|
|
|
]
|