blob: 8657ddbfd73f7d49b0766d186c0285b7d1afbad9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from flask import render_template
from flask_login import login_required, current_user
from app.main import bp
@bp.route('/')
def index():
return render_template('index.html')
@bp.route('/dashboard')
@login_required
def dashboard():
return render_template('main/dashboard.html', name=current_user.name)
|