dashboards.py 756 B

1234567891011121314151617181920212223
  1. from flask import Blueprint, render_template, request, flash, redirect, url_for
  2. from flask_login import login_required, current_user
  3. from .models import User
  4. from . import db
  5. dashboards = Blueprint('dashboards', __name__)
  6. @dashboards.route('/', methods=['GET', 'POST'])
  7. def market():
  8. return render_template('market.html', user=current_user)
  9. @dashboards.route('/profile', methods=['GET', 'POST'])
  10. @login_required
  11. def profile():
  12. return render_template('profile.html', user=current_user)
  13. @dashboards.route('/modal_home')
  14. def modal_home():
  15. return render_template('detail_art_for_home.html', user=current_user)
  16. @dashboards.route('/modal_profile')
  17. def modal_profile():
  18. return render_template('detail_art_for_profile.html', user=current_user)