You can not 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
346B

  1. from flask import Blueprint, render_template
  2. from flask_login import login_required, current_user
  3. from . import db
  4. main = Blueprint('main', __name__)
  5. @main.route('/')
  6. def index():
  7. return render_template('index.html')
  8. @main.route('/profile')
  9. @login_required
  10. def profile():
  11. return render_template('profile.html', name=current_user.name)