def index(_resp): facade.logout(_resp).execute() redirect_url = '/login' google_user = get_current_user() if google_user: redirect_url = create_logout_url(redirect_url) return RedirectResponse(redirect_url)
def index(_resp): facade.logout(_resp).execute() redirect_url = '/' google_user = get_current_user() if google_user: redirect_url = create_logout_url(redirect_url) return RedirectResponse(redirect_url)
def index(_resp): facade.logout(_resp).execute() return RedirectResponse('/')
def index(_handler, _resp): facade.logout(_resp).execute() _handler.redirect('/')