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):