mirror of
https://github.com/actix/actix-website
synced 2024-11-24 00:41:07 +01:00
Fix Diesel Database example (#234)
This commit is contained in:
parent
73fbca627b
commit
bcf63b6e83
@ -36,7 +36,7 @@ async fn main() -> io::Result<()> {
|
||||
|
||||
// Start HTTP server
|
||||
HttpServer::new(move || {
|
||||
App::new::data(pool.clone())
|
||||
App::new().data(pool.clone())
|
||||
.resource("/{name}", web::get().to(index))
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
|
Loading…
Reference in New Issue
Block a user