mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
11 lines
200 B
Rust
11 lines
200 B
Rust
mod content {
|
|||
pub struct RawHtml<T>(pub T);
|
|||
}
|
|||
|
|||
struct Json<T>(T);
|
|||
|
|||
#[post("/hello", data = "<body>")]
|
|||
fn hello(body: Json<String>) -> content::RawHtml<Json<String>> {
|
|||
content::RawHtml(body)
|
|||
}
|