1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

resolved formatting

This commit is contained in:
dowwie
2020-01-31 07:21:39 -05:00
parent da72aef69c
commit 04cebf6899
4 changed files with 19 additions and 23 deletions

View File

@ -30,13 +30,11 @@ async fn main() -> std::io::Result<()> {
res
})
})
.service(web::resource("/login").to(|| {
async {
"You are on /login. Go to src/redirect.rs to change this behavior."
}
.service(web::resource("/login").to(|| async {
"You are on /login. Go to src/redirect.rs to change this behavior."
}))
.service(web::resource("/").to(|| {
async { "Hello, middleware! Check the console where the server is run." }
.service(web::resource("/").to(|| async {
"Hello, middleware! Check the console where the server is run."
}))
})
.bind("127.0.0.1:8080")?