Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Implement /dogwithabanana
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Jan 12, 2023
1 parent a677d79 commit 07853ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ def validate_key(key: str) -> bool:
async def status(req) -> web.Response:
return web.Response(text = "OK", status = 200)

@routes.get("/dogwithabanana")
@routes.post("/dogwithabanana")
async def dogwithabanana(req) -> web.Response:
if req.method == "POST":
return web.Response(text = "https://www.youtube.com/watch?v=21HNPnjjcZE", status = 200)

raise web.HTTPTemporaryRedirect("https://www.youtube.com/watch?v=21HNPnjjcZE")

@routes.post("/init")
async def init_server(req) -> web.Response:
try:
Expand Down

0 comments on commit 07853ab

Please sign in to comment.