()
| 348 | @api.route("/settings/software/plugins", methods=["GET"]) |
| 349 | @restricted_access |
| 350 | def 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 |
nothing calls this directly
no test coverage detected