main¶
APP
¶
The FastAPI ASGI application.
get_root(request)
async
¶
GET /
Introspective overview of gateway server.
Note
Temporarily redirecting to GET /docs
.
Source code in optimade_gateway/main.py
@APP.get("/", include_in_schema=False)
async def get_root(request: Request) -> RedirectResponse:
"""`GET /`
Introspective overview of gateway server.
!!! note
Temporarily redirecting to `GET /docs`.
"""
return RedirectResponse(
request.url.replace(path=f"{request.url.path.strip('/')}/docs")
)