torrust_tracker/servers/http/v1/handlers/
mod.rs

1//! Axum [`handlers`](axum#handlers) for the HTTP server.
2//!
3//! Refer to the generic [HTTP server documentation](crate::servers::http) for
4//! more information about the HTTP tracker.
5use super::responses;
6use crate::core::error::Error;
7
8pub mod announce;
9pub mod common;
10pub mod health_check;
11pub mod scrape;
12
13impl From<Error> for responses::error::Error {
14    fn from(err: Error) -> Self {
15        responses::error::Error {
16            failure_reason: format!("Tracker error: {err}"),
17        }
18    }
19}