Skip to content

Commit

Permalink
added view urls
Browse files Browse the repository at this point in the history
  • Loading branch information
sPAICEcake committed Mar 6, 2024
1 parent ed1fb3c commit 215a694
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,30 @@
"""
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),
path('admin/', admin.site.urls),
path('oauth2/', include('django_auth_adfs.urls')),
path('login_redirect', login_redirect),
path('api/studenten', student_list),
path('api/studenten/<int:id>', student_detail)
path('api/studenten/<int:id>', student_detail),
path('api/vakken', vak_list),
path('api/vakken/<int:id>', vak_detail),
path('api/projecten', project_list),
path('api/projecten/<int:id>', project_detail),
path('api/indieningen', indiening_list),
path('api/indieningen/<int:id>', indiening_detail),
path('api/scores', score_list),
path('api/scores/<int:id>', score_detail)
]

urlpatterns = format_suffix_patterns(urlpatterns)

0 comments on commit 215a694

Please sign in to comment.