Add diagnostics API endpoint.

Only available with write access and above.

Reports used and available filesystem sizes and database space
usage.
This commit is contained in:
D. Berge
2024-05-08 16:27:32 +02:00
parent ec26285e53
commit af0df23cc4
6 changed files with 121 additions and 1 deletions

View File

@@ -312,6 +312,9 @@ app.map({
}
}
},
'/diagnostics/': {
get: [ mw.auth.access.write, mw.etag.noSave, mw.admin.diagnostics.get ]
},
'/rss/': {
get: [ mw.rss.get ]
}