14 lines
404 B
Python
14 lines
404 B
Python
from flask import Blueprint, render_template, request, redirect, url_for
|
|
|
|
auth_bp = Blueprint('auth', __name__)
|
|
|
|
@auth_bp.route('/login', methods=['GET', 'POST'])
|
|
def login():
|
|
if request.method == 'POST':
|
|
# Обработка логики авторизации
|
|
pass
|
|
return render_template('login.html')
|
|
|
|
@auth_bp.route('/')
|
|
def index():
|
|
return redirect(url_for('auth.login')) |