StudE-Backend/stude/subjects/urls.py

11 lines
447 B
Python
Raw Normal View History

2023-06-27 18:15:31 +08:00
from django.urls import include, path
from .views import SubjectByCourseView, SubjectByCourseYearSemesterView, SubjectListView, SubjectListAllView
2023-06-27 18:15:31 +08:00
urlpatterns = [
path('', SubjectListView.as_view()),
path('all', SubjectListAllView.as_view()),
path('<slug:course_slug>',
SubjectByCourseView.as_view()),
2023-07-17 21:23:27 +08:00
path('<slug:course_slug>/<slug:year_slug>/<slug:semester_slug>',
SubjectByCourseYearSemesterView.as_view()),
2023-06-27 18:15:31 +08:00
]