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

Function logout_post

app/api.py:262–269  ·  view source on GitHub ↗

Logs out the current user and clears the session. Returns: Empty response on success, error object otherwise.

()

Source from the content-addressed store, hash-verified

260@api_blueprint.route('/logout', methods=['POST'])
261@no_auth_required()
262def logout_post():
263 """Logs out the current user and clears the session.
264
265 Returns:
266 Empty response on success, error object otherwise.
267 """
268 session.logout()
269 return json_response.success()
270
271
272@api_blueprint.route('/debugLogs', methods=['GET'])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected