5b7b41aa50
- Flask app with SQLAlchemy, Flask-Login, Flask-Mail - Admin/owner roles, vessel management, charters, work orders - Background launcher (Iniciar.vbs) runs server without terminal window - Root redirect fixed: / → /login - debug=False, use_reloader=False for pythonw.exe compatibility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
285 B
Python
10 lines
285 B
Python
from flask import Blueprint, render_template
|
|
from flask_login import login_required, current_user
|
|
|
|
bp = Blueprint('owner', __name__, url_prefix='/owner')
|
|
|
|
@bp.route('/dashboard')
|
|
@login_required
|
|
def dashboard():
|
|
return render_template('owner/dashboard.html', user=current_user)
|