Working log in/route guard
This commit is contained in:
@@ -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():
|
||||
"""
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user