You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
353 B
Python
15 lines
353 B
Python
![]()
9 months ago
|
# main.py
|
||
|
|
||
|
from flask import Blueprint, render_template
|
||
|
from flask_login import login_required, current_user
|
||
|
|
||
|
main = Blueprint('main', __name__)
|
||
|
|
||
|
@main.route('/')
|
||
|
def index():
|
||
|
return render_template('index.html')
|
||
|
|
||
|
@main.route('/profile')
|
||
|
@login_required
|
||
|
def profile():
|
||
|
return render_template('profile.html', name=current_user.name)
|