Skip to content
Snippets Groups Projects
Commit 8e5d418d authored by Robert Goldmann's avatar Robert Goldmann
Browse files

allow configuration of api url behind proxy

parent 1739b912
No related branches found
No related tags found
No related merge requests found
......@@ -21,11 +21,12 @@ with open('version.json', 'r', encoding='UTF-8') as f:
app = FastAPI(title=Constants.APP_NAME,
version=VERSION['name'],
description='The StorageLeaf API')
description='The StorageLeaf API',
servers=[{'url': SETTINGS['api']['url'], 'description': f'{Constants.APP_NAME} API'}])
app.include_router(DeviceRouter.router)
@app.get("/")
@app.get('/')
async def root():
return RedirectResponse(url='/docs')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment