Beispiel #1
0
def delete(id):
    if session_validate() == False:
        return redirect(url_for('login'))
    res = RequestsApi.delete_api(id)
    print(res)
    flash('Deleted')
    return redirect(url_for('index'))
Beispiel #2
0
def delete(id):
    if session_validate() == False:
        redirect(url_for('index'))
    RequestsApi.delete_api(id)
    return redirect(url_for('listed_by_user', user=session['username']))
def delete(id):
    res = RequestsApi.delete_api(id)
    return redirect(url_for('index'))
Beispiel #4
0
def delete(id):
    if session_validate() == False:
        redirect(url_for('index'))
    RequestsApi.delete_api(id)
    return redirect(url_for('listed'))