1
0
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:
Augusto César Dias
2020-10-26 18:02:45 +01:00
committed by GitHub
parent 20078fe603
commit 7030bf5fe8
5 changed files with 58 additions and 5 deletions

View File

@ -209,6 +209,9 @@ where
self.data = Some(data);
}
self.data
.get_or_insert_with(Extensions::new)
.extend(cfg.extensions);
self
}