(self, request)
| 148 | |
| 149 | class PluginReloadAPIView(PluginAuthMixin, APIView): |
| 150 | def post(self, request): |
| 151 | pm = PluginManager.get() |
| 152 | pm.stop_all_plugins(reason="reload") |
| 153 | pm.discover_plugins(force_reload=True) |
| 154 | return Response({"success": True, "count": len(pm._registry)}) |
| 155 | |
| 156 | |
| 157 | def _install_plugin_from_zip(zip_file, plugins_dir, *, file_name="plugin.zip", allow_overwrite_key=None, allow_overwrite=False): |
nothing calls this directly
no test coverage detected