Esempio n. 1
0
def to_do(to_do_id):
    if flask.request.method == 'GET':
        return app_functions.get_child_by_id_by_id('to_do',to_do_id)
    elif flask.request.method == 'DELETE':
        return app_functions.remove_id_from_collection('to_do',to_do_id)
Esempio n. 2
0
def member(member_id):
    if flask.request.method == 'GET':
        return app_functions.get_child_by_id_by_id('members',member_id)
    elif flask.request.method == 'DELETE':
        return app_functions.remove_id_from_collection('members',member_id)