Remove DB and Directory settings out of the BTCPayServerOptions (#2168)

This commit is contained in:
Nicolas Dorier
2020-12-27 22:06:00 +09:00
committed by GitHub
parent 0dcd834535
commit a6ee64ea63
11 changed files with 126 additions and 123 deletions

View File

@@ -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}")]