mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
Update to master (#90)
This commit is contained in:
@ -7,6 +7,6 @@ workspace = ".."
|
||||
|
||||
[dependencies]
|
||||
actix-service = "0.3.3"
|
||||
actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" }
|
||||
actix-web = { git="https://github.com/actix/actix-web.git" }
|
||||
futures = "0.1.25"
|
||||
env_logger = "0.6"
|
@ -11,8 +11,8 @@ fn main() -> std::io::Result<()> {
|
||||
|
||||
HttpServer::new(|| {
|
||||
App::new()
|
||||
.middleware(redirect::CheckLogin)
|
||||
.middleware(simple::SayHi)
|
||||
.wrap(redirect::CheckLogin)
|
||||
.wrap(simple::SayHi)
|
||||
.service(web::resource("/login").to(|| {
|
||||
"You are on /login. Go to src/redirect.rs to change this behavior."
|
||||
}))
|
||||
|
Reference in New Issue
Block a user