Break Router::nest into nest and nest_service methods

This commit is contained in:
David Pedersen
2022-06-11 13:19:27 +02:00
parent dbdbd0165e
commit 2ddd0a230c
9 changed files with 136 additions and 238 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ where
T::Future: Send + 'static,
{
let path = self.show_update_destroy_path();
self.router = self.router.nest(&path, svc);
self.router = self.router.nest_service(&path, svc);
self
}
@@ -159,7 +159,7 @@ where
T::Future: Send + 'static,
{
let path = self.index_create_path();
self.router = self.router.nest(&path, svc);
self.router = self.router.nest_service(&path, svc);
self
}