20 lines
464 B
Python
20 lines
464 B
Python
from common.config.site_settings import site_settings
|
|
from fastapi.responses import RedirectResponse
|
|
import uvicorn
|
|
|
|
from webapi.bootstrap.application import create_app
|
|
|
|
app = create_app()
|
|
|
|
@app.get("/", status_code=301)
|
|
async def root():
|
|
"""
|
|
TODO: redirect client to /docs
|
|
"""
|
|
return RedirectResponse("docs")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run(
|
|
app="main:app", host=site_settings.SERVER_HOST, port=site_settings.SERVER_PORT
|
|
) |