Skip to content

Commit

Permalink
Merge pull request #67 from SCAI-BIO/tiadams-patch-1
Browse files Browse the repository at this point in the history
hotfix for v1 redirect
  • Loading branch information
tiadams authored Sep 6, 2024
2 parents 513d15f + 4f13f51 commit e33976b
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 e33976b

Please sign in to comment.