athena_rs 3.22.1

Hyper performant polyglot Database driver
Documentation
//! Static API route catalog used by health/root route discovery.
//!
//! This module separates route metadata contracts from the large route-data
//! table so health endpoint code can consume a focused interface.

use serde::Serialize;

#[path = "health_routes_catalog_data.rs"]
mod data;

/// Human-readable definition of one advertised HTTP route.
#[derive(Debug, Clone, Copy, Serialize)]
pub(super) struct RouteDefinition {
    /// Route path pattern.
    pub(super) path: &'static str,
    /// Supported HTTP methods.
    pub(super) methods: &'static [&'static str],
    /// Short route description shown in health/root metadata.
    pub(super) summary: &'static str,
}

/// Returns canonical route metadata payload surfaced by `GET /`.
pub(super) fn advertised_routes() -> &'static [RouteDefinition] {
    data::ROUTES
}