WMGZON/controllers/web/endpoints.py

16 lines
373 B
Python
Raw Normal View History

from flask import redirect
from flask import Blueprint
from . import user
from . import product
2023-12-31 19:03:29 +00:00
blueprint = Blueprint('main', __name__)
2023-12-31 19:03:29 +00:00
blueprint.register_blueprint(user.blueprint)
blueprint.register_blueprint(product.blueprint)
2023-12-31 19:03:29 +00:00
# Function responsible for displaying the main landing page of the site
@blueprint.route('/')
def index():
return redirect("/products")