1#[cfg(feature = "config")]
2pub mod config;
3pub mod error;
4pub mod middleware;
5pub mod request;
6pub mod response;
7pub mod router;
8pub mod support;
9pub mod traits;
10
11pub type ServerResult<T, E = error::Error> = Result<T, E>;
12
13pub type Request = axum::extract::Request;
14
15pub type Response = ServerResult<axum::response::Response>;
16
17pub type Middleware = BoxCallback<axum::Router, ServerResult<axum::Router>>;
18
19#[allow(dead_code)]
20#[derive(Clone, Default)]
21pub struct Server {
22 inner: axum::Router,
23}
24
25pub use ayun_core::*;