StudE-Backend/stude/subjects/urls.py

8 lines
310 B
Python

from django.urls import include, path
from .views import SubjectByYearSemesterView, SubjectListView
from rest_framework import routers
urlpatterns = [
path('', SubjectListView.as_view()),
path('<slug:course_slug>/<slug:year_slug>/<slug:semester_slug>',
SubjectByYearSemesterView.as_view()),
]