From f9b7fd32431310266de0784c4390bb59598b8656 Mon Sep 17 00:00:00 2001 From: iwtba4188 Date: Thu, 7 Dec 2023 21:34:27 +0800 Subject: [PATCH] fix(libraries): endpoint typo - libaray_name -> library_name --- src/api/routers/libraries.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/routers/libraries.py b/src/api/routers/libraries.py index a15b9ed..f931b97 100644 --- a/src/api/routers/libraries.py +++ b/src/api/routers/libraries.py @@ -38,17 +38,17 @@ def get_library_rss_data( @router.get( - "/openinghours/{libaray_name}", response_model=schemas.resources.LibraryOpeningHour + "/openinghours/{library_name}", response_model=schemas.resources.LibraryOpeningHour ) def get_library_opening_hours( - libaray_name: schemas.resources.LibraryName = Path( + library_name: schemas.resources.LibraryName = Path( ..., description="圖書館代號:總圖(mainlib)、人社圖書館(hslib)、南大圖書館(nandalib)" ) ): """ 取得指定圖書館的開放時間。 """ - return library_scraper.get_opening_hours(libaray_name) + return library_scraper.get_opening_hours(library_name) @router.get("/goods", response_model=schemas.resources.LibraryNumberOfGoods)