Files
AstralRinth/apps/labrinth/src/routes/not_found.rs
2025-12-11 12:49:59 +00:00

13 lines
322 B
Rust

use crate::models::error::ApiError;
use actix_web::{HttpResponse, Responder};
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)
}