From b3a0368b952c58f0cb77302dbd97809ad2398aa9 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 6 Oct 2023 13:54:03 +0100 Subject: [PATCH] Update app.py --- application/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/app.py b/application/app.py index e97febc1..ae619974 100644 --- a/application/app.py +++ b/application/app.py @@ -27,7 +27,10 @@ celery.config_from_object("application.celeryconfig") @app.route("/") def home(): - return redirect('http://localhost:5173') if request.remote_addr in ('0.0.0.0', '127.0.0.1', 'localhost', '172.18.0.1') else 'Welcome to DocsGPT Backend!' + if request.remote_addr in ('0.0.0.0', '127.0.0.1', 'localhost', '172.18.0.1'): + return redirect('http://localhost:5173') + else: + return 'Welcome to DocsGPT Backend!' @app.after_request def after_request(response):