G: F6 fix health tag and document auth 503 and auth-off notes

This commit is contained in:
ari committed 2026-10-20 15:54:13 -04:00
1 parent a1117da01d
commit 2adfa59027
5 files changed
+65 -4

No files matched your search

+2
View File
@@ -52,6 +52,7 @@ fn registry(st: &AppState) -> &PeerRegistry {
responses(
(status = 200, body = PeerList, description = "Peer status, sorted by name"),
(status = 401, body = ErrorBody, description = "Missing or unknown bearer token"),
(status = 503, body = ErrorBody, description = "The token database is unavailable"),
)
)]
pub(crate) async fn list(State(st): State<AppState>) -> Json<PeerList> {
@@ -75,6 +76,7 @@ pub(crate) async fn list(State(st): State<AppState>) -> Json<PeerList> {
(status = 200, body = PeerStatus, description = "The peer, not wrapped in an object"),
(status = 401, body = ErrorBody, description = "Missing or unknown bearer token"),
(status = 404, body = ErrorBody, description = "Unknown peer"),
(status = 503, body = ErrorBody, description = "The token database is unavailable"),
)
)]
pub(crate) async fn one(