diff --git a/requirements.txt b/requirements.txt index e615e36..4b85eb9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,10 @@ connexion[swagger-ui] == 2.14.2 -python-dateutil >= 2.6.0 -setuptools >= 21.0.0 +python-dateutil +setuptools Flask < 2.3 -waitress >= 3.0.2 +waitress == 3.0.2 matchms == 0.28.2 -numpy~=1.26.4 +numpy -Paste~=3.10.1 \ No newline at end of file +Paste ==3.10.1 \ No newline at end of file diff --git a/similarity_service_impl/__main__.py b/similarity_service_impl/__main__.py index c7175b7..2079201 100644 --- a/similarity_service_impl/__main__.py +++ b/similarity_service_impl/__main__.py @@ -1,7 +1,12 @@ #!/usr/bin/env python3 +from flask import redirect import similarity_service_impl.app +@similarity_service_impl.app.app.route('/') +def index(): + return redirect('/ui/') + if __name__ == '__main__': similarity_service_impl.app.serve_app()