コード例 #1
0
def create():
    try:
        Company.create_company(request.json)
        company = Company.find_by_id(request.json["company_id"])
        return jsonify(company), 201

    except Exception as e:
        return jsonify(error="couldn't add game"), 400