Skip to content

Commit

Permalink
fix: wrong update corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan authored Jun 7, 2023
1 parent 971e611 commit 7b6b043
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
app = FastAPI(
title="Cheminf Micro Services",
description="This set of essential and valuable microservices is designed to be accessed via API calls to support cheminformatics. Generally, it is designed to work with SMILES-based inputs and could be used to translate between different machine-readable representations, get Natural Product (NP) likeliness scores, visualize chemical structures, and generate descriptors. In addition, the microservices also host an instance of STOUT and another instance of DECIMER (two deep learning models for IUPAC name generation and optical chemical structure recognition, respectively).",
terms_of_service="https://github.com/Steinbeck-Lab",
terms_of_service="https://steinbeck-lab.github.io/cheminformatics-python-microservice",
contact={
"name": "Steinbeck Lab",
"url": "https://cheminf.uni-jena.de/",
Expand All @@ -35,17 +35,12 @@
app.include_router(converters.router)
app.include_router(decimer.router)


@app.get("/", include_in_schema=False)
async def docs_redirect():
return RedirectResponse(url="/docs")


app = VersionedFastAPI(
app,
version_format="{major}",
prefix_format="/v{major}",
terms_of_service="https://github.com/Steinbeck-Lab",
enable_latest=True,
terms_of_service="https://steinbeck-lab.github.io/cheminformatics-python-microservice",
contact={
"name": "Steinbeck Lab",
"url": "https://cheminf.uni-jena.de/",
Expand All @@ -56,3 +51,8 @@ async def docs_redirect():
"url": "https://creativecommons.org/licenses/by/4.0/",
},
)


@app.get("/", include_in_schema=False)
async def root():
return RedirectResponse(url="https://steinbeck-lab.github.io/cheminformatics-python-microservice")

0 comments on commit 7b6b043

Please sign in to comment.