Add a Flask application factory that creates and configures the Flask app, registers blueprints, initializes extensions, and sets up HTTPS context. Updated config.py to set database URI, upload folder, and certificate paths. Added a minimal routes module with auth and main blueprints. Updated app.py to use the factory and run the development server with SSL. Also staged new __pycache__ files, app.db, package.json, routes.py, and var directory.
17 lines
339 B
Python
17 lines
339 B
Python
# Minimal routes for the application
|
|
|
|
from flask import Blueprint, render_template
|
|
|
|
# Auth blueprint
|
|
auth_bp = Blueprint('auth', __name__, url_prefix='/auth')
|
|
|
|
@auth_bp.route('/login')
|
|
def login():
|
|
return 'Login page'
|
|
|
|
# Main blueprint
|
|
main_bp = Blueprint('main', __name__)
|
|
|
|
@main_bp.route('/')
|
|
def index():
|
|
return 'Hello, World!'
|