mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-11-23 23:41:06 +03:00
fixed '/-/config' endpoint serialisation
This commit is contained in:
parent
4fb6243330
commit
8b934dfeef
22
app/main.py
22
app/main.py
@ -82,17 +82,17 @@ async def _health(request: Request):
|
|||||||
@app.get('/-/config', summary='* Config', description='returns environment variables.')
|
@app.get('/-/config', summary='* Config', description='returns environment variables.')
|
||||||
async def _config():
|
async def _config():
|
||||||
return JSONResponse({
|
return JSONResponse({
|
||||||
'VERSION': VERSION,
|
'VERSION': str(VERSION),
|
||||||
'COMMIT': COMMIT,
|
'COMMIT': str(COMMIT),
|
||||||
'DEBUG': DEBUG,
|
'DEBUG': str(DEBUG),
|
||||||
'DLS_URL': DLS_URL,
|
'DLS_URL': str(DLS_URL),
|
||||||
'DLS_PORT': DLS_PORT,
|
'DLS_PORT': str(DLS_PORT),
|
||||||
'SITE_KEY_XID': SITE_KEY_XID,
|
'SITE_KEY_XID': str(SITE_KEY_XID),
|
||||||
'INSTANCE_REF': INSTANCE_REF,
|
'INSTANCE_REF': str(INSTANCE_REF),
|
||||||
'TOKEN_EXPIRE_DELTA': TOKEN_EXPIRE_DELTA,
|
'TOKEN_EXPIRE_DELTA': str(TOKEN_EXPIRE_DELTA),
|
||||||
'LEASE_EXPIRE_DELTA': LEASE_EXPIRE_DELTA,
|
'LEASE_EXPIRE_DELTA': str(LEASE_EXPIRE_DELTA),
|
||||||
'LEASE_RENEWAL_PERIOD': LEASE_RENEWAL_PERIOD,
|
'LEASE_RENEWAL_PERIOD': str(LEASE_RENEWAL_PERIOD),
|
||||||
'CORS_ORIGINS': CORS_ORIGINS,
|
'CORS_ORIGINS': str(CORS_ORIGINS),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user