kegani 0.1.1

A developer-friendly, ergonomic, production-ready Rust web framework
Documentation
//! Route DSL macros for Kegani
//!
//! Provides `#[route]`, `#[get]`, `#[post]`, `#[put]`, `#[delete]` procedural macros
//! and route grouping helpers.

/// General route macro - registers a route with the given path and HTTP method
///
/// # Example
///
/// ```rust,ignore
/// #[route("/users/{id}", method = "GET")]
/// async fn get_user(...) { ... }
/// ```
pub use kegani_macros::route;

/// GET route macro
///
/// # Example
///
/// ```rust,ignore
/// #[get("/api/users")]
/// async fn list_users(...) { ... }
/// ```
pub use kegani_macros::get;

/// POST route macro
///
/// # Example
///
/// ```rust,ignore
/// #[post("/api/users")]
/// async fn create_user(...) { ... }
/// ```
pub use kegani_macros::post;

/// PUT route macro
///
/// # Example
///
/// ```rust,ignore
/// #[put("/api/users/{id}")]
/// async fn update_user(...) { ... }
/// ```
pub use kegani_macros::put;

/// DELETE route macro
///
/// # Example
///
/// ```rust,ignore
/// #[delete("/api/users/{id}")]
/// async fn delete_user(...) { ... }
/// ```
pub use kegani_macros::delete;

/// PATCH route macro
///
/// # Example
///
/// ```rust,ignore
/// #[patch("/api/users/{id}")]
/// async fn patch_user(...) { ... }
/// ```
pub use kegani_macros::patch;