mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
15 lines
685 B
Python
15 lines
685 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .views import StudentStatusAPIView, ActiveStudentStatusListAPIView, StudentStatusListByStudentStatusLocation, StudentStatusListByCurrentLocation
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'filter/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',
|
|
StudentStatusListByStudentStatusLocation.as_view()),
|
|
path('', include(router.urls)),
|
|
]
|