mirror of
https://github.com/actix/examples
synced 2025-02-22 09:13:17 +01:00
Update main.rs
Switch the position of a rogue parenthesis.
This commit is contained in:
parent
32da9a82b0
commit
b806d2254d
@ -31,7 +31,7 @@ fn index(query: web::Query<HashMap<String, String>>) -> Result<HttpResponse> {
|
||||
fn main() -> std::io::Result<()> {
|
||||
// start http server
|
||||
HttpServer::new(move || {
|
||||
App::new().service(web::resource("/").route(web::get()).to(index))
|
||||
App::new().service(web::resource("/").route(web::get().to(index)))
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
.run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user