def account():
    if request.method == 'GET':
        resp = make_response(DBManager.get_account(), 200)
    elif request.method == 'POST':
        info = requests.get('http://3.227.193.57:8000/users/all')
        resp = make_response(DBManager.add_account(info.json()), 200)
    resp.mimetype = "application/json"
    return resp
def task_hrid_uid(hr_id, user_id):
    if request.method == 'GET':
        resp = make_response(
            DBManager.get_all_tasks_by_hrid_userid(hr_id, user_id), 200)
    elif request.method == 'POST':
        resp = make_response(DBManager.add_task(
            request.get_json(), hr_id, user_id), 200)
    resp.mimetype = "application/json"
    return resp
def task():
    resp = make_response(DBManager.get_all_tasks(), 200)
    resp.mimetype = "application/json"
    return resp
def account_reg(region):
    resp = make_response(
        DBManager.get_account_region(region), 200)
    resp.mimetype = "application/json"
    return resp
def task_uid_task(task_id, user_id):
    resp = make_response(DBManager.delete_task(task_id, user_id), 200)
    resp.mimetype = "application/json"
    return resp
def task_tid_hrid_uid(task_id, hr_id, user_id):
    resp = make_response(DBManager.update_task(
        request.get_json(), task_id, hr_id, user_id), 200)
    resp.mimetype = "application/json"
    return resp
def taskhr(hr_id):
    resp = make_response(DBManager.get_all_tasks_by_hrid(hr_id), 200)
    resp.mimetype = "application/json"
    return resp