Checks the status of TinyPilot. This endpoint may be called from all locations, so there is no restriction in regards to CORS. Returns: Empty response, which implies the server is up and running.
()
| 633 | @api_blueprint.route('/status', methods=['GET']) |
| 634 | @no_auth_required() |
| 635 | def status_get(): |
| 636 | """Checks the status of TinyPilot. |
| 637 | |
| 638 | This endpoint may be called from all locations, so there is no restriction |
| 639 | in regards to CORS. |
| 640 | |
| 641 | Returns: |
| 642 | Empty response, which implies the server is up and running. |
| 643 | """ |
| 644 | response = json_response.success() |
| 645 | response.headers['Access-Control-Allow-Origin'] = '*' |
| 646 | return response |
| 647 | |
| 648 | |
| 649 | @api_blueprint.route('/settings/requiresHttps', methods=['GET']) |
nothing calls this directly
no outgoing calls
no test coverage detected