#[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())
}
#[Get]
Get Route Annotation
#[rupring::Get(path = /)]
pub fn hello(request: rupring::Request) -> rupring::Response {
// ...
rupring::Response::new().text("Hello, World!".to_string())
}