diff --git a/ajax/plugins/do_plugin_install.php b/ajax/plugins/do_plugin_install.php new file mode 100755 index 00000000..08bf8a40 --- /dev/null +++ b/ajax/plugins/do_plugin_install.php @@ -0,0 +1,29 @@ +installPlugin($archiveUrl); + echo json_encode($return); + + } catch (Exception $e) { + http_response_code(500); + echo json_encode(['error' => $e->getMessage()]); + } +} else { + http_response_code(400); + echo json_encode(['error' => 'Plugin URI and version are required']); + exit; +} +