elif-http-derive 0.2.11

Derive macros for elif-http declarative routing and controller system
Documentation
//! Test that basic controller usage compiles successfully

use elif_http_derive::{controller, get, post};

#[controller("/users")]
pub struct UserController;

impl UserController {
    #[get("/")]
    pub async fn index(&self) -> String {
        "Index".to_string()
    }
    
    #[get("/{id}")]
    pub async fn show(&self, id: u32) -> String {
        format!("User {}", id)
    }
    
    #[post("/")]
    pub async fn create(&self) -> String {
        "Created".to_string()
    }
}

fn main() {}