@app.route('/attorney/find/<string:bar_number>', methods=['POST'])
@is_logged_in
def find_attorney(bar_number: str):
    attorney = DATABASE.attorney(bar_number)
    if attorney:
        attorney['success'] = True
        return jsonify(attorney)
    return jsonify({'success': False, 'message': 'Unable to find attorney having Bar Number {}'.format(bar_number)})
@app.route('/attorney/find/<string:bar_number>', methods=['POST'])
@is_logged_in
def find_attorney(bar_number: str):
    attorney = DATABASE.attorney(bar_number)
    if attorney:
        attorney['success'] = True
        return jsonify(attorney)
    return jsonify({'success': False, 'message': 'Unable to find attorney having Bar Number {}'.format(bar_number)})