mirror of
https://github.com/actix/examples
synced 2025-06-29 02:10:36 +02:00
upgrade example to actix-web 0.7
This commit is contained in:
@ -25,7 +25,7 @@ struct AppState {
|
||||
}
|
||||
|
||||
/// simple handle
|
||||
fn index(req: HttpRequest<AppState>) -> HttpResponse {
|
||||
fn index(req: &HttpRequest<AppState>) -> HttpResponse {
|
||||
println!("{:?}", req);
|
||||
req.state().counter.set(req.state().counter.get() + 1);
|
||||
|
||||
|
Reference in New Issue
Block a user