Skip to content

Commit

Permalink
feat: add routes with no trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
pikdum committed May 4, 2024
1 parent d43dcd8 commit cc1fd66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mona.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ async def get_subsplease_poster(name: str) -> str | None:
return None


@app.get("/poster")
@app.get("/poster/")
@app.get("/poster/show/{filename}")
async def poster(filename: str | None = None, query: str | None = None):
Expand Down Expand Up @@ -160,6 +161,7 @@ async def get_fanart(parsed: dict[str, str]) -> list[dict] | None:
return None


@app.get("/fanart")
@app.get("/fanart/")
@app.get("/fanart/show/{filename}")
async def fanart(filename: str | None = None, query: str | None = None):
Expand Down Expand Up @@ -188,6 +190,7 @@ async def get_torrent_art(url: str):
return None


@app.get("/torrent-art")
@app.get("/torrent-art/")
async def torrent_art(url: str | None = None):
if not url:
Expand Down

0 comments on commit cc1fd66

Please sign in to comment.