MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / restart_post

Function restart_post

app/api.py:303–313  ·  view source on GitHub ↗

Triggers restart of the system. Returns: Empty response on success, error object otherwise.

()

Source from the content-addressed store, hash-verified

301@api_blueprint.route('/restart', methods=['POST'])
302@required_auth(auth.Role.ADMIN)
303def restart_post():
304 """Triggers restart of the system.
305
306 Returns:
307 Empty response on success, error object otherwise.
308 """
309 try:
310 local_system.restart()
311 return json_response.success()
312 except local_system.Error as e:
313 return json_response.error(e), 500
314
315
316@api_blueprint.route('/update', methods=['GET'])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected