mirror of
https://github.com/fafhrd91/actix-web
synced 2025-09-01 01:16:59 +02:00
add external resource support on scope level
This commit is contained in:
@@ -122,7 +122,9 @@ impl ResourceMap {
|
||||
I: AsRef<str>,
|
||||
{
|
||||
if let Some(pattern) = self.named.get(name) {
|
||||
self.fill_root(path, elements)?;
|
||||
if pattern.pattern().starts_with("/") {
|
||||
self.fill_root(path, elements)?;
|
||||
}
|
||||
if pattern.resource_path(path, elements) {
|
||||
Ok(Some(()))
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user