mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 08:58:30 +01:00
14 lines
396 B
Python
14 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)
|