mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-12-26 21:49:34 +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.')
|
||||
async def _config():
|
||||
return JSONResponse({
|
||||
'VERSION': VERSION,
|
||||
'COMMIT': COMMIT,
|
||||
'DEBUG': DEBUG,
|
||||
'DLS_URL': DLS_URL,
|
||||
'DLS_PORT': DLS_PORT,
|
||||
'SITE_KEY_XID': SITE_KEY_XID,
|
||||
'INSTANCE_REF': INSTANCE_REF,
|
||||
'TOKEN_EXPIRE_DELTA': TOKEN_EXPIRE_DELTA,
|
||||
'LEASE_EXPIRE_DELTA': LEASE_EXPIRE_DELTA,
|
||||
'LEASE_RENEWAL_PERIOD': LEASE_RENEWAL_PERIOD,
|
||||
'CORS_ORIGINS': CORS_ORIGINS,
|
||||
'VERSION': str(VERSION),
|
||||
'COMMIT': str(COMMIT),
|
||||
'DEBUG': str(DEBUG),
|
||||
'DLS_URL': str(DLS_URL),
|
||||
'DLS_PORT': str(DLS_PORT),
|
||||
'SITE_KEY_XID': str(SITE_KEY_XID),
|
||||
'INSTANCE_REF': str(INSTANCE_REF),
|
||||
'TOKEN_EXPIRE_DELTA': str(TOKEN_EXPIRE_DELTA),
|
||||
'LEASE_EXPIRE_DELTA': str(LEASE_EXPIRE_DELTA),
|
||||
'LEASE_RENEWAL_PERIOD': str(LEASE_RENEWAL_PERIOD),
|
||||
'CORS_ORIGINS': str(CORS_ORIGINS),
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user