Set correect return type for raw config

This commit is contained in:
Nicolas Mowen 2024-09-24 09:28:16 -06:00
parent a8e2f97260
commit d398061118

View File

@ -160,7 +160,9 @@ def config_raw():
raw_config = f.read()
f.close()
return raw_config, 200
return JSONResponse(
content=raw_config, media_type="text/plain", status_code=200
)
@router.post("/config/save")