StudE-Backend/stude/student_status/urls.py

16 lines
658 B
Python
Raw Normal View History

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import StudentStatusAPIView, ActiveStudentStatusListAPIView, StudentStatusListByStudentStatusLocation, StudentStatusListByCurrentLocation
router = DefaultRouter()
2023-09-29 12:24:03 +08:00
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()),
2023-09-29 12:24:03 +08:00
path('near/',
StudentStatusListByStudentStatusLocation.as_view()),
path('', include(router.urls)),
]