def METHOD_NAME(client_id):
    client = Client.get(client_id)
    if not client:
        flash("no such app", "warning")
        return redirect(url_for("developer.index"))
    if client.user_id != current_user.id:
        flash("you cannot see this app", "warning")
        return redirect(url_for("developer.index"))
    return render_template(
        "developer/client_details/oauth_endpoint.html", client=client
    )