MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / get

Method get

apps/plugins/api_views.py:139–146  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

137
138class PluginsListAPIView(PluginAuthMixin, APIView):
139 def get(self, request):
140 pm = PluginManager.get()
141 # Prefer cached registry; reload explicitly via the reload endpoint
142 pm.discover_plugins(sync_db=False, use_cache=True)
143 plugins = pm.list_plugins()
144 for plugin in plugins:
145 plugin["logo_url"] = _absolutize_logo_url(request, plugin.get("logo_url"))
146 return Response({"plugins": plugins})
147
148
149class PluginReloadAPIView(PluginAuthMixin, APIView):

Callers

nothing calls this directly

Calls 4

_absolutize_logo_urlFunction · 0.85
discover_pluginsMethod · 0.80
list_pluginsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected