Working log in/route guard

This commit is contained in:
2025-09-04 08:05:01 -04:00
parent d250e136c3
commit 20f9a4485e
9 changed files with 199 additions and 355 deletions

View File

@@ -32,7 +32,7 @@ def generate_random_number_string(length):
@customer.route("/all", methods=["GET"])
@login_required
def all_customers_around():
customer_list = db.session \
.query(Customer_Customer) \
@@ -42,7 +42,7 @@ def all_customers_around():
@customer.route("/all/<int:page>", methods=["GET"])
@login_required
def all_customers(page):
"""
pagination all customers
@@ -141,7 +141,7 @@ def get_a_customer_tank(customer_id):
@customer.route("/create", methods=["POST"])
@login_required
def create_customer():
"""
"""