Use the plugin builder website instead of docker to fetch plugins (#4285)

This commit is contained in:
Nicolas Dorier
2022-11-21 10:23:25 +09:00
committed by GitHub
parent ec76acd3a6
commit 20025f254c
10 changed files with 90 additions and 67 deletions

View File

@@ -83,11 +83,11 @@ namespace BTCPayServer.Controllers
[HttpPost("server/plugins/install")]
public async Task<IActionResult> InstallPlugin(
[FromServices] PluginService pluginService, string plugin, bool update = false, string path ="")
[FromServices] PluginService pluginService, string plugin, bool update = false, string version = null)
{
try
{
await pluginService.DownloadRemotePlugin(plugin, path);
await pluginService.DownloadRemotePlugin(plugin, version);
if (update)
{
pluginService.UpdatePlugin(plugin);