Skip to content

Commit

Permalink
fix : school_code for path
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTraveylan committed Sep 3, 2024
1 parent e0553f0 commit 44305ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/school/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ def create_school(
return created_school.to_decrypted()


@school_router.get("/join/{school_id}", status_code=status.HTTP_200_OK)
@school_router.get("/join/{school_code}", status_code=status.HTTP_200_OK)
def join_school(
current_user: Annotated[User, Depends(get_current_user)],
school_code: str,
school_code: Annotated[str, Path(title="school_code")],
) -> SchoolSchemaOut:
"""
Join a school
Expand Down

0 comments on commit 44305ea

Please sign in to comment.