Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
teacher moet geauthenticeerd bij het aanmaken van een subject #45
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarraga committed Mar 7, 2024
1 parent 171a173 commit 2b06770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routes/teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def subjects_of_teacher_get(
return get_subjects_of_teacher(session, teacher.id)


@teacher_router.post("teacher/subjects")
@teacher_router.post("teacher/subjects", dependencies=[Depends(get_authenticated_teacher)])
def create_subject_post(
subject: SubjectDataclass,
session: Session = Depends(get_session),
Expand Down

0 comments on commit 2b06770

Please sign in to comment.