This commit is contained in:
David Pedersen
2022-06-29 22:21:28 +02:00
parent b22077862e
commit fb5219f9cd
+2 -2
View File
@@ -137,7 +137,7 @@ where
self.route(&path, delete(handler)) self.route(&path, delete(handler))
} }
/// Nest another route at the "member level". /// Nest another router at the "member level".
/// ///
/// The routes will be nested at `/{resource_name}/:{resource_name}_id`. /// The routes will be nested at `/{resource_name}/:{resource_name}_id`.
pub fn nest(mut self, router: Router<B>) -> Self { pub fn nest(mut self, router: Router<B>) -> Self {
@@ -146,7 +146,7 @@ where
self self
} }
/// Nest another route at the "collection level". /// Nest another router at the "collection level".
/// ///
/// The routes will be nested at `/{resource_name}`. /// The routes will be nested at `/{resource_name}`.
pub fn nest_collection(mut self, router: Router<B>) -> Self { pub fn nest_collection(mut self, router: Router<B>) -> Self {