1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 18:12:57 +01:00

Fix Diesel Database example (#234)

This commit is contained in:
maxstanley 2021-10-22 10:59:11 +01:00 committed by GitHub
parent 73fbca627b
commit bcf63b6e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ async fn main() -> io::Result<()> {
// Start HTTP server // Start HTTP server
HttpServer::new(move || { HttpServer::new(move || {
App::new::data(pool.clone()) App::new().data(pool.clone())
.resource("/{name}", web::get().to(index)) .resource("/{name}", web::get().to(index))
}) })
.bind("127.0.0.1:8080")? .bind("127.0.0.1:8080")?