1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Axum [`handlers`](axum#handlers) for the HTTP server.
//!
//! Refer to the generic [HTTP server documentation](crate::servers::http) for
//! more information about the HTTP tracker.
use super::responses;
use crate::tracker::error::Error;

pub mod announce;
pub mod common;
pub mod scrape;

impl From<Error> for responses::error::Error {
    fn from(err: Error) -> Self {
        responses::error::Error {
            failure_reason: format!("Tracker error: {err}"),
        }
    }
}