mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Remove DB and Directory settings out of the BTCPayServerOptions (#2168)
This commit is contained in:
@@ -12,10 +12,10 @@ namespace BTCPayServer.Storage
|
||||
private readonly FileService _FileService;
|
||||
private readonly string _dir;
|
||||
|
||||
public StorageController(FileService fileService, BTCPayServerOptions serverOptions)
|
||||
public StorageController(FileService fileService, DataDirectories datadirs)
|
||||
{
|
||||
_FileService = fileService;
|
||||
_dir = FileSystemFileProviderService.GetTempStorageDir(serverOptions);
|
||||
_dir = datadirs.TempStorageDir;
|
||||
}
|
||||
|
||||
[HttpGet("{fileId}")]
|
||||
|
||||
Reference in New Issue
Block a user