mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
updates flexible responders.
This commit is contained in:
@ -11,7 +11,7 @@ fn hello_world() -> impl Responder {
|
||||
"Hello World!"
|
||||
}
|
||||
|
||||
fn current_temperature(_req: HttpRequest) -> impl Responder {
|
||||
fn current_temperature() -> impl Responder {
|
||||
web::Json(Measurement { temperature: 42.3 })
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user