Permite usar variável de ambiente para definir o redirecionamento da página inicial
This commit is contained in:
parent
dbcb11c642
commit
b6a66e297f
|
|
@ -102,6 +102,14 @@ def create_app():
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def root():
|
||||||
|
if app.config['REDIRECT_ROOT_URL']:
|
||||||
|
return redirect(app.config['REDIRECT_ROOT_URL'])
|
||||||
|
else:
|
||||||
|
return "Nada"
|
||||||
|
|
||||||
|
|
||||||
@app.route('/login', methods=['GET', 'POST'])
|
@app.route('/login', methods=['GET', 'POST'])
|
||||||
def login():
|
def login():
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue