mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-21 10:57:02 +08:00
upgrade_server: Advertise appname on status page
This commit is contained in:
parent
8b9b1283f4
commit
c20bb011f2
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ async def api_root(auth=Depends(get_current_username)):
|
||||||
"app": __appname__,
|
"app": __appname__,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
return {"app": "Currently under maintenance"}
|
return {"app": __appname__, "maintenance": "enabled"}
|
||||||
|
|
||||||
|
|
||||||
@app.get("/status")
|
@app.get("/status")
|
||||||
|
@ -88,7 +88,7 @@ async def api_status():
|
||||||
"app": "running",
|
"app": "running",
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
return {"app": "Currently under maintenance"}
|
return {"app": __appname__, "maintenance": "enabled"}
|
||||||
|
|
||||||
|
|
||||||
@app.get("/current_version", response_model=CurrentVersion, status_code=200)
|
@app.get("/current_version", response_model=CurrentVersion, status_code=200)
|
||||||
|
|
Loading…
Add table
Reference in a new issue