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

Function getLicenseInfo

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

Source from the content-addressed store, hash-verified

422@api.route("/settings/software/license", methods=["GET"])
423@restricted_access
424def 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

Callers

nothing calls this directly

Calls 2

pluginManagerFunction · 0.90
getPluginMethod · 0.80

Tested by

no test coverage detected