rupring

Attribute Macro Get

Source
#[Get]
Expand description

Get Route Annotation

#[rupring::Get(path = /)]
pub fn hello(request: rupring::Request) -> rupring::Response {
    // ...
    rupring::Response::new().text("Hello, World!".to_string())
}