from flask import Blueprint, render_template, request, redirect, url_for, current_app, send_from_directory
|
|
from werkzeug.utils import secure_filename
|
|
from flask_login import login_user, logout_user, login_required
|
|
|
|
import os
|
|
|
|
from .models import db
|
|
|
|
bp = Blueprint("paginas", __name__)
|
|
|
|
@bp.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
@bp.route('/docs')
|
|
def docs():
|
|
return render_template('docs.html')
|
|
|
|
@bp.route('/orders')
|
|
def orders():
|
|
return render_template('orders.html')
|
|
|
|
@bp.route('/notifications')
|
|
def notifications():
|
|
return render_template('notifications.html')
|
|
|
|
@bp.route('/account')
|
|
def account():
|
|
return render_template('account.html')
|
|
|
|
@bp.route('/settings')
|
|
def settings():
|
|
return render_template('settings.html')
|
|
|
|
@bp.route('/login')
|
|
def login():
|
|
return render_template('login.html')
|
|
|
|
@bp.route('/signup')
|
|
def signup():
|
|
return render_template('signup.html')
|
|
|
|
@bp.route('/reset-password')
|
|
def resetpassword():
|
|
return render_template('reset-password.html')
|
|
|
|
@bp.route('/404')
|
|
def cuatrocerocuatro():
|
|
return render_template('404.html')
|
|
|
|
@bp.route('/charts')
|
|
def charts():
|
|
return render_template('charts.html')
|
|
|
|
@bp.route('/help')
|
|
def help():
|
|
return render_template('help.html')
|
|
|
|
@bp.route('/uploads/<filename>')
|
|
def uploaded_file(filename):
|
|
return send_from_directory(current_app.config['UPLOAD_FOLDER'], filename)
|