mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 00:44:26 +02:00
Adding app_data to ServiceConfig (#1758)
Co-authored-by: Rob Ede <robjtede@icloud.com> Co-authored-by: Augusto <augusto@flowciety.de>
This commit is contained in:
committed by
GitHub
parent
20078fe603
commit
7030bf5fe8
@ -209,6 +209,9 @@ where
|
||||
|
||||
self.data = Some(data);
|
||||
}
|
||||
self.data
|
||||
.get_or_insert_with(Extensions::new)
|
||||
.extend(cfg.extensions);
|
||||
self
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user