caelix-macros 0.0.37

Procedural macros for the Caelix framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use caelix_macros::controller;

struct UserController;

#[controller("/users")]
impl UserController {
    #[get("/{id}")]
    async fn get_user(&self, #[param] (id): i64) -> caelix_core::Result<String> {
        Ok(id.to_string())
    }
}

fn main() {}