arcature 2026.2.1

Arcature application framework: a high-level Application facade over the certified Arcature subsystems, with the low-level Axum/Tower escape hatch preserved.
Documentation
use super::App;
use axum::routing::MethodRouter;

impl<S> App<S>
where
    S: Clone + Send + Sync + 'static,
{
    /// Register a route on the application.
    ///
    /// Thinly forwards to [`axum::Router::route`], taking a path and an Axum
    /// [`MethodRouter`] (e.g. built with [`axum::routing::get`] /
    /// [`axum::routing::post`]). Use the re-exported
    /// [`crate::axum::routing`] to build the method router through Arcature's
    /// certified version.
    pub fn route(self, path: &str, method_router: MethodRouter<S>) -> Self {
        App {
            router: self.router.route(path, method_router),
        }
    }
}