diff --git a/api/urls.py b/api/urls.py index 9b939fbe..f15ab4ab 100644 --- a/api/urls.py +++ b/api/urls.py @@ -16,9 +16,14 @@ """ from django.contrib import admin from django.urls import path, include +from rest_framework.urlpatterns import format_suffix_patterns from .views.views import microsoft_association, login_redirect from .views.student import student_list, student_detail +from .views.vak import * +from .views.project import * +from .views.indiening import * +from .views.score import * urlpatterns = [ path('.well-known/microsoft-identity-association.json', microsoft_association), @@ -26,5 +31,15 @@ path('oauth2/', include('django_auth_adfs.urls')), path('login_redirect', login_redirect), path('api/studenten', student_list), - path('api/studenten/', student_detail) + path('api/studenten/', student_detail), + path('api/vakken', vak_list), + path('api/vakken/', vak_detail), + path('api/projecten', project_list), + path('api/projecten/', project_detail), + path('api/indieningen', indiening_list), + path('api/indieningen/', indiening_detail), + path('api/scores', score_list), + path('api/scores/', score_detail) ] + +urlpatterns = format_suffix_patterns(urlpatterns)