mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 00:50:20 +02:00
fix nested resources
This commit is contained in:
11
src/scope.rs
11
src/scope.rs
@@ -262,12 +262,11 @@ where
|
||||
} else {
|
||||
Some(self.guards)
|
||||
};
|
||||
let rdef = if config.is_root() {
|
||||
ResourceDef::root_prefix(&self.rdef)
|
||||
} else {
|
||||
ResourceDef::prefix(&self.rdef)
|
||||
};
|
||||
config.register_service(rdef, guards, self.endpoint)
|
||||
config.register_service(
|
||||
ResourceDef::root_prefix(&self.rdef),
|
||||
guards,
|
||||
self.endpoint,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user