From 890586175ff054cc01d39f9931ab2e4bae62c1e1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 14 Apr 2019 20:08:28 +0200 Subject: search by phash --- check/app/server/api.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'check/app/server/api.py') 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' }) -- cgit v1.2.3-70-g09d2