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:
commit
6dccd567db
@ -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…
Reference in New Issue
Block a user