mirror of
https://github.com/actix/actix-website
synced 2025-08-31 00:50:20 +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