StudE-Backend/stude/subjects/urls.py

12 lines
363 B
Python
Raw Permalink Normal View History

2023-06-27 18:15:31 +08:00
from django.urls import include, path
from .views import SubjectListView
from .views import SubjectByYearSemesterView, SubjectByYearView
2023-06-27 18:15:31 +08:00
urlpatterns = [
path('', SubjectListView.as_view()),
path('<slug:year_slug>/',
SubjectByYearView.as_view()),
path('<slug:year_slug>/<slug:semester_slug>',
2023-06-27 18:15:31 +08:00
SubjectByYearSemesterView.as_view()),
]