Changed product route from /products/get to /products

This commit is contained in:
Thastertyn 2024-03-13 21:47:57 +01:00
parent 69ca94c77b
commit f23003e28d

View File

@ -9,7 +9,7 @@ from app.api import bp_product
from app.services.product_service import ProductService from app.services.product_service import ProductService
@bp_product.route('/get', methods=['GET']) @bp_product.route('', methods=['GET'])
@swag_from(get_products_swagger) @swag_from(get_products_swagger)
def get_products(): def get_products():
page = request.args.get('page', default=0, type=int) page = request.args.get('page', default=0, type=int)