index.py 298 Bytes
Newer Older
chenyuanjie committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import os
import tempfile

from flask import Blueprint, request
from flask import redirect, send_file

index_bp = Blueprint('index', __name__)


@index_bp.route('/', methods=['GET', 'POST'])
def index():
    """
    重定向
    :return:
    """
    return redirect('/ai', code=302, Response=None)