def log_out(): response = session_controller.delete_session(request.json) if response.get_json()['success']: session.pop('user', None) return response
def log_out(): return session_controller.delete_session(request.json)
def log_out(): session.pop('user', None) return session_controller.delete_session(request.json)