Skip to content

Commit

Permalink
Tweak requirements and add automatic forward to the swagger UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
meier-rene committed Jan 9, 2025
1 parent 2f28b3e commit fb29290
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Paste ==3.10.1
5 changes: 5 additions & 0 deletions similarity_service_impl/__main__.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit fb29290

Please sign in to comment.