Skip to content

Commit

Permalink
fix(libraries): endpoint typo
Browse files Browse the repository at this point in the history
- libaray_name -> library_name
  • Loading branch information
iwtba4188 committed Dec 7, 2023
1 parent acb01ee commit f9b7fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/routers/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9b7fd3

Please sign in to comment.