mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-06 21:14:38 +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__,
|
||||
}
|
||||
else:
|
||||
return {"app": "Currently under maintenance"}
|
||||
return {"app": __appname__, "maintenance": "enabled"}
|
||||
|
||||
|
||||
@app.get("/status")
|
||||
|
@ -88,7 +88,7 @@ async def api_status():
|
|||
"app": "running",
|
||||
}
|
||||
else:
|
||||
return {"app": "Currently under maintenance"}
|
||||
return {"app": __appname__, "maintenance": "enabled"}
|
||||
|
||||
|
||||
@app.get("/current_version", response_model=CurrentVersion, status_code=200)
|
||||
|
|
Loading…
Add table
Reference in a new issue