Skip to content

Commit

Permalink
Merge pull request #54 from berrysauce/un-deta
Browse files Browse the repository at this point in the history
Re-added docs redirect
  • Loading branch information
berrysauce authored Oct 11, 2024
2 parents f177984 + 0b31501 commit bd5c680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
11 changes: 0 additions & 11 deletions Spacefile

This file was deleted.

6 changes: 2 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

app = FastAPI(
title="Ingredients – API",
#license_info="https://github.com/berrysauce/ingredients/blob/main/LICENSE.md",
#docs_url=None,
license_info="https://github.com/berrysauce/ingredients/blob/main/LICENSE.md",
docs_url=None,
redoc_url=None
)

Expand All @@ -56,11 +56,9 @@ def get_root():
return HTMLResponse(content=f.read())


"""
@app.get("/docs")
def get_docs():
return RedirectResponse(url="https://github.com/berrysauce/ingredients/blob/main/README.md#-using-the-api", status_code=301)
"""


@app.get("/ingredients", response_class=JSONResponse)
Expand Down

0 comments on commit bd5c680

Please sign in to comment.