from flask import Blueprint
from flask_restful import Api

from resources.user import UserResource
from resources.product import ProductResource

api_bp = Blueprint('api', __name__)
api = Api(api_bp)

api.add_resource(UserResource, '/user')
api.add_resource(ProductResource, '/product')
