mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-01 04:51:51 +02:00
rename .middleware to .wrap
This commit is contained in:
@@ -108,7 +108,7 @@ where
|
||||
}
|
||||
|
||||
/// Register a middleware.
|
||||
pub fn middleware<M, B, F>(
|
||||
pub fn wrap<M, B, F>(
|
||||
self,
|
||||
mw: F,
|
||||
) -> AppRouter<
|
||||
@@ -322,7 +322,7 @@ where
|
||||
}
|
||||
|
||||
/// Register a middleware.
|
||||
pub fn middleware<M, B1, F>(
|
||||
pub fn wrap<M, B1, F>(
|
||||
self,
|
||||
mw: F,
|
||||
) -> AppRouter<
|
||||
|
Reference in New Issue
Block a user