1
0
mirror of https://github.com/actix/examples synced 2025-02-22 17:23:18 +01:00

Update main.rs

Switch the position of a rogue parenthesis.
This commit is contained in:
chris 2019-04-01 10:47:15 +02:00 committed by GitHub
parent 32da9a82b0
commit b806d2254d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()