blob: da2941bb06d9f2fb2a2ef50ba80b133793693137 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//! `cargo run --example input --features response-macros`
#[windmark::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
windmark::router::Router::new()
.set_private_key_file("windmark_private.pem")
.set_certificate_file("windmark_public.pem")
.mount(
"/query",
windmark::success!(
context,
format!(
"You provided the following queries: '{:?}'",
windmark::utilities::queries_from_url(&context.url)
)
),
)
.run()
.await
}
|