from app import app
from flask_cors import CORS

cors = CORS(app, resources={r"/api/*": {"origins": "*"}})

## API Routes ##
from homefoods_api.blueprints.login.views import login_api_blueprint
from homefoods_api.blueprints.users.views import users_api_blueprint
from homefoods_api.blueprints.images.views import images_api_blueprint
# from homefoods_api.blueprints.comments.views import comments_api_blueprint




app.register_blueprint(login_api_blueprint, url_prefix='/api/v1/login')
app.register_blueprint(users_api_blueprint, url_prefix='/api/v1/users')
app.register_blueprint(images_api_blueprint, url_prefix='/api/v1/images')
# app.register_blueprint(comments_api_blueprint, url_prefix='/api/v1/comments')


