()
| 67 | @api.route('/astroprint/login-key', methods=['GET']) |
| 68 | @restricted_access |
| 69 | def get_login_key(): |
| 70 | try: |
| 71 | key = astroprintCloud().get_login_key() |
| 72 | if key: |
| 73 | return jsonify(key) |
| 74 | |
| 75 | except (AstroPrintCloudNoConnectionException, ConnectionError): |
| 76 | abort(503, "AstroPrint.com can't be reached") |
| 77 | |
| 78 | abort(401) |
| 79 | |
| 80 | @api.route('/astroprint/upload-data', methods=['GET']) |
| 81 | @restricted_access |
nothing calls this directly
no test coverage detected