Skip to content

Commit

Permalink
🧩 /doc endpoint added
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Mar 22, 2024
1 parent 9d1819c commit 3cc30e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def favicon():
return FileResponse(f"{dirname}/favicon.ico")


@app.api_route("/", methods=["GET"])
@app.api_route("/", methods=["GET"], include_in_schema=False)
async def index():
return {"HIFI-API": "v1", "REPO": "https://github.com/sachinsenal0x64/Hifi-Tui"}

Expand Down Expand Up @@ -223,7 +223,7 @@ async def get_track(
)


@app.api_route("/doc", methods=["GET"])
@app.api_route("/doc", methods=["GET"], include_in_schema=False)
async def doc():
return HTMLResponse(
"""
Expand Down

1 comment on commit 3cc30e6

@vercel
Copy link

@vercel vercel bot commented on 3cc30e6 Mar 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.