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)
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)