mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 21:27:10 +01:00
15 lines
396 B
Python
15 lines
396 B
Python
"""List of clients"""
|
|
from flask import render_template
|
|
from flask_login import current_user, login_required
|
|
|
|
from app.developer.base import developer_bp
|
|
from app.models import Client
|
|
|
|
|
|
@developer_bp.route("/", methods=["GET", "POST"])
|
|
@login_required
|
|
def index():
|
|
clients = Client.filter_by(user_id=current_user.id).all()
|
|
|
|
return render_template("developer/index.html", clients=clients)
|