diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-04-14 20:08:28 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-04-14 20:08:28 +0200 |
| commit | 890586175ff054cc01d39f9931ab2e4bae62c1e1 (patch) | |
| tree | 38abf826df54b3793cfb364a1dda9748f5d99ab6 /check/app/server | |
| parent | 61f169d109c9ba1c01ada06d830973c873d4e634 (diff) | |
search by phash
Diffstat (limited to 'check/app/server')
| -rw-r--r-- | check/app/server/__init__.py | 1 | ||||
| -rw-r--r-- | check/app/server/api.py | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/check/app/server/__init__.py b/check/app/server/__init__.py index 93f5256..e69de29 100644 --- a/check/app/server/__init__.py +++ b/check/app/server/__init__.py @@ -1 +0,0 @@ -__init__.py
\ No newline at end of file diff --git a/check/app/server/api.py b/check/app/server/api.py index 620e604..5c5b4bf 100644 --- a/check/app/server/api.py +++ b/check/app/server/api.py @@ -16,5 +16,11 @@ api = Blueprint('api', __name__) @api.route('/') def index(): - """List the datasets and their fields""" + """API status noop""" + return jsonify({ 'status': 'ok' }) + +@api.route('/v1/match/') +def match(): + """Search by image""" + # get threshold return jsonify({ 'status': 'ok' }) |
