from django.urls import include, path from .views import SubjectByYearSemesterView, SubjectListView from rest_framework import routers urlpatterns = [ path('', SubjectListView.as_view()), path('//', SubjectByYearSemesterView.as_view()), ]