MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getSoftwarePlugins

Function getSoftwarePlugins

src/astroprint/api/settings.py:350–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348@api.route("/settings/software/plugins", methods=["GET"])
349@restricted_access
350def getSoftwarePlugins():
351 pm = pluginManager()
352
353 response = []
354
355 for pId, p in pm.plugins.iteritems():
356 response.append({
357 'id': p.pluginId,
358 'name': p.name,
359 'version': p.version,
360 'can_remove': not p.systemPlugin,
361 'verified': p.verified
362 })
363
364 r = make_response(json.dumps(response), 200)
365 r.headers['Content-Type'] = 'application/json'
366
367 return r
368
369@api.route("/settings/software/plugins", methods=["POST"])
370@restricted_access

Callers

nothing calls this directly

Calls 2

pluginManagerFunction · 0.90
appendMethod · 0.80

Tested by

no test coverage detected