Beispiel #1
0
def ch_admin_put_view(ch: Channel):
    return jsonify({
        "msg": f"channel {ch.name} updated",
        "channel": ch.json()
    }), 200
Beispiel #2
0
def ch_admin_delete_view(ch: Channel):
    return jsonify({
        "msg": f"channel {ch.name} deleted",
        "channel": ch.json()
    }), 200
Beispiel #3
0
def ch_admin_get_view(ch: Channel):
    return jsonify({
        "msg": f"channel {ch.name} retrieved",
        "channel": ch.json()
    }), 200