mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
BTCPay Server Extensions (#1925)
* BTCPay Server Extensions  * cleanup * fix * Polish UI a bit,detect when docker deployment
This commit is contained in:
@@ -67,5 +67,11 @@ namespace BTCPayServer.Configuration
|
||||
var defaultSettings = BTCPayDefaultSettings.GetDefaultSettings(networkType);
|
||||
return configuration.GetOrDefault("datadir", defaultSettings.DefaultDataDirectory);
|
||||
}
|
||||
|
||||
public static string GetExtensionDir(this IConfiguration configuration, NetworkType networkType)
|
||||
{
|
||||
var defaultSettings = BTCPayDefaultSettings.GetDefaultSettings(networkType);
|
||||
return configuration.GetOrDefault("extensiondir", defaultSettings.DefaultExtensionDirectory);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user