Add details to Mural API errors (#4886)

This commit is contained in:
aecsocket
2025-12-11 12:49:59 +00:00
committed by GitHub
parent 3dd2de5f18
commit ddcc14d99f
8 changed files with 16 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ pub async fn not_found() -> impl Responder {
let data = ApiError {
error: "not_found",
description: "the requested route does not exist".to_string(),
details: None,
};
HttpResponse::NotFound().json(data)