# from flask import Flask,Blueprint
# from flask_restful import Api,Resource

# # from app.api.v2.views.products_views import Products,Get_product_id
# from app.api.v2.views.products_views import Products,DeleteProd,Products_update,Single_product
# from app.api.v2.views.sale_views import Sales,Get_sale_id,DeleteSale
# from app.api.v2.views.users_views import UserRegistration,UserLogin,Logout,AllUsers
# # Register your resources here

# blue = Blueprint("api", __name__, url_prefix="/api/v2")
# api=Api(blue)



# api.add_resource(Products,"/products")
# api.add_resource(Single_product,"/products/<int:product_id>")
# api.add_resource(UserLogin,"/users/login")
# api.add_resource(UserRegistration,"/auth/user")
# api.add_resource(Sales,"/sales")
# api.add_resource(DeleteSale,"/sales/<int:sale_id>")
# api.add_resource(Get_sale_id,"/sales/<int:product_id>")
# api.add_resource(DeleteProd,"/products/<int:product_id>")
# api.add_resource(Products_update,"/products/<int:product_id>")
# api.add_resource(Logout,'/users/logout')
# api.add_resource(AllUsers,"/users")