1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00

Merge pull request #102 from xaxoxa/patch-1

Fixes parentheses in template_askama main.rs
This commit is contained in:
Nikolay Kim 2019-04-01 03:45:10 -07:00 committed by GitHub
commit 6dccd567db
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<()> { fn main() -> std::io::Result<()> {
// start http server // start http server
HttpServer::new(move || { 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")? .bind("127.0.0.1:8080")?
.run() .run()