tenant gate active

This commit is contained in:
2025-11-11 02:45:05 +01:00
parent ac9e688e7a
commit 4f29ff73c6
12 changed files with 168 additions and 123 deletions
+7 -1
View File
@@ -5,7 +5,7 @@ use axum::{
};
use serde::Serialize;
use serde_json::Value;
use std::fmt::Display;
use std::fmt::{self, Display};
use utoipa::ToSchema;
pub type AppResult<T> = Result<T, AppError>;
@@ -59,6 +59,12 @@ impl AppError {
}
}
impl fmt::Display for AppError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}: {}", self.status, self.message)
}
}
impl IntoResponse for AppError {
fn into_response(self) -> Response {
let status = self.status;