Skip to content

Commit

Permalink
Remove an unused public route
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Sep 4, 2024
1 parent 2d78da5 commit efbed87
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions backend/src/appointment/routes/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,6 @@ def update_schedule(
return repo.schedule.update(db=db, schedule=schedule, schedule_id=id)


@router.post("/public/url")
def get_signed_url_from_slug(
schedule_slug: schemas.ScheduleSlug,
db: Session = Depends(get_db),
) -> dict:
schedule = repo.schedule.get_by_slug(db, schedule_slug.slug)
if not schedule:
raise validation.ScheduleNotFoundException()

owner = schedule.owner
if not owner:
raise validation.ScheduleNotFoundException()

return {
'url': signed_url_by_subscriber(owner)
}


@router.post('/public/availability', response_model=schemas.AppointmentOut)
def read_schedule_availabilities(
subscriber: Subscriber = Depends(get_subscriber_from_schedule_or_signed_url),
Expand Down

0 comments on commit efbed87

Please sign in to comment.