mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Plugins: Support plugin git remote with multiple versions of same plugins
This commit is contained in:
@@ -83,11 +83,11 @@ namespace BTCPayServer.Controllers
|
||||
|
||||
[HttpPost("server/plugins/install")]
|
||||
public async Task<IActionResult> InstallPlugin(
|
||||
[FromServices] PluginService pluginService, string plugin, bool update = false)
|
||||
[FromServices] PluginService pluginService, string plugin, bool update = false, string path ="")
|
||||
{
|
||||
try
|
||||
{
|
||||
await pluginService.DownloadRemotePlugin(plugin);
|
||||
await pluginService.DownloadRemotePlugin(plugin, path);
|
||||
if (update)
|
||||
{
|
||||
pluginService.UpdatePlugin(plugin);
|
||||
|
||||
Reference in New Issue
Block a user