mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Break Router::nest into nest and nest_service methods
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user