mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 21:27:10 +01:00
13 lines
345 B
Python
13 lines
345 B
Python
from flask import render_template
|
|
from flask_login import login_required
|
|
|
|
from app.discover.base import discover_bp
|
|
from app.models import Client
|
|
|
|
|
|
@discover_bp.route("/", methods=["GET", "POST"])
|
|
@login_required
|
|
def index():
|
|
clients = Client.filter_by(approved=True).all()
|
|
return render_template("discover/index.html", clients=clients)
|