From efbed8745b5b8cead630a4bcd13e1f44c16116f3 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Wed, 4 Sep 2024 08:35:42 -0700 Subject: [PATCH] Remove an unused public route --- backend/src/appointment/routes/schedule.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/backend/src/appointment/routes/schedule.py b/backend/src/appointment/routes/schedule.py index 783b75ad1..a99f949a3 100644 --- a/backend/src/appointment/routes/schedule.py +++ b/backend/src/appointment/routes/schedule.py @@ -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),