Skip to content

Commit

Permalink
itfix for v1 redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
tiadams authored Sep 6, 2024
1 parent 513d15f commit 4f13f51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def swagger_redirect():
return RedirectResponse(url='/docs')


@app.get("/v1", include_in_schema=False)
def swagger_redirect():
return RedirectResponse(url='/docs')


@app.get("/version", tags=["info"])
def get_current_version():
return app.version
Expand Down

0 comments on commit 4f13f51

Please sign in to comment.