Set get_config as the name of the function
This commit is contained in:
@@ -34,7 +34,7 @@ router = APIRouter()
|
|||||||
|
|
||||||
|
|
||||||
@router.get("/config")
|
@router.get("/config")
|
||||||
async def get_def(request: Request, user=Depends(get_admin_user)):
|
async def get_config(request: Request, user=Depends(get_admin_user)):
|
||||||
return {
|
return {
|
||||||
"enabled": request.app.state.config.ENABLE_IMAGE_GENERATION,
|
"enabled": request.app.state.config.ENABLE_IMAGE_GENERATION,
|
||||||
"engine": request.app.state.config.IMAGE_GENERATION_ENGINE,
|
"engine": request.app.state.config.IMAGE_GENERATION_ENGINE,
|
||||||
|
|||||||
Reference in New Issue
Block a user