| 1234567891011121314151617181920212223 |
- from flask import Blueprint, render_template, request, flash, redirect, url_for
- from flask_login import login_required, current_user
- from .models import User
- from . import db
- dashboards = Blueprint('dashboards', __name__)
- @dashboards.route('/', methods=['GET', 'POST'])
- def market():
- return render_template('market.html', user=current_user)
-
- @dashboards.route('/profile', methods=['GET', 'POST'])
- @login_required
- def profile():
- return render_template('profile.html', user=current_user)
-
- @dashboards.route('/modal_home')
- def modal_home():
- return render_template('detail_art_for_home.html', user=current_user)
- @dashboards.route('/modal_profile')
- def modal_profile():
- return render_template('detail_art_for_profile.html', user=current_user)
|