Skip to content

Commit

Permalink
Fixed get Meeting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-holzner committed Oct 1, 2024
1 parent d301ee0 commit 7f78d0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/app/routers/meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ def read_meetings(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)
return meetings

@router.get("/meetings/{meeting_id}", response_model=schemas.MeetingSchema)
def read_meeting_route(meeting_id: int, db: Session = Depends(get_db)):
db_meeting = get_meeting(db, meeting_id=meeting_id)
if db_meeting is None:
raise HTTPException(status_code=404, detail="Meeting not found")
return db_meeting

@router.put("/meetings/{meeting_id}", response_model=schemas.Meeting)
def update_meeting_route(meeting_id: int, meeting: schemas.MeetingCreate, db: Session = Depends(get_db)):
Expand Down

0 comments on commit 7f78d0b

Please sign in to comment.