()
| 422 | @api.route("/settings/software/license", methods=["GET"]) |
| 423 | @restricted_access |
| 424 | def getLicenseInfo(): |
| 425 | pm = pluginManager() |
| 426 | lcnMgr = pm.getPlugin('com.astroprint.astrobox.plugins.lcnmgr') |
| 427 | |
| 428 | if lcnMgr and lcnMgr.validLicense: |
| 429 | return jsonify({ |
| 430 | 'is_valid': True, |
| 431 | 'issuer': lcnMgr.issuerName, |
| 432 | 'expires': lcnMgr.expires, |
| 433 | 'license_id': lcnMgr.licenseId |
| 434 | }) |
| 435 | |
| 436 | return jsonify({'is_valid': False}) |
| 437 | |
| 438 | @api.route("/settings/software/storage", methods=["GET"]) |
| 439 | @restricted_access |
nothing calls this directly
no test coverage detected