mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
13 lines
346 B
Python
13 lines
346 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(published=True).all()
|
||
|
return render_template("discover/index.html", clients=clients)
|