diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-07-13 18:14:02 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-07-13 18:14:02 -0500 |
| commit | d1637bafbff1d9cbf64bb8702ed48513b7edfcc6 (patch) | |
| tree | 41df50fe74edc971d913bac2a2e81e1b2a4113d6 /src/slskd/Application/Management/API/Controllers | |
| parent | 511860676eec56e3687397f11a04cc3db14fb4aa (diff) | |
| download | slskd-d1637bafbff1d9cbf64bb8702ed48513b7edfcc6.tar.gz | |
use startup options
Diffstat (limited to 'src/slskd/Application/Management/API/Controllers')
| -rw-r--r-- | src/slskd/Application/Management/API/Controllers/SessionController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Application/Management/API/Controllers/SessionController.cs b/src/slskd/Application/Management/API/Controllers/SessionController.cs index 09a95c24..511643a6 100644 --- a/src/slskd/Application/Management/API/Controllers/SessionController.cs +++ b/src/slskd/Application/Management/API/Controllers/SessionController.cs @@ -37,10 +37,10 @@ namespace slskd.Management.API public class SessionController : ControllerBase { public SessionController( - Microsoft.Extensions.Options.IOptionsSnapshot<Options> optionsSnapshot, + Options optionsSnapshotAtStartup, SymmetricSecurityKey jwtSigningKey) { - Options = optionsSnapshot.Value; + Options = optionsSnapshotAtStartup; JwtSigningKey = jwtSigningKey; } |
