25 lines
966 B
Python
25 lines
966 B
Python
from django.urls import path
|
|
from . import views
|
|
from rest_framework_simplejwt.views import TokenRefreshView
|
|
from rest_framework.authtoken.views import obtain_auth_token
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"user/token",
|
|
views.MyTokenObtainPairView.as_view(),
|
|
), # URL to classview fpr token interactions "as_view()"
|
|
path(
|
|
"user/token/refresh/", TokenRefreshView.as_view()
|
|
), # Lib view from rest_framework to refresh the given token
|
|
path("user/logoutUser", views.logoutUser),
|
|
path("user/checkUser", views.checkLoginStatus),
|
|
path("fetchExamData", views.getAPI_ExamDataSet_ForStudent),
|
|
path("pruefplanUpload/", views.PruefPlanUploader.as_view()),
|
|
path("api-token-auth/", obtain_auth_token),
|
|
path("addlecturer", views.addLecturer),
|
|
path("addAttendance", views.addAttendance),
|
|
path("addSubject", views.addSubject),
|
|
path("addExam", views.addExam),
|
|
path("addRoomAllocation", views.addRoomAllocation),
|
|
]
|