From e257e83f313a2976347b0a30f58e66b7bcbc1235 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 15 Apr 2019 14:43:57 +0200 Subject: run flask --- check/app/server/api.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'check/app/server/api.py') diff --git a/check/app/server/api.py b/check/app/server/api.py index 6b97b59..1b17a1e 100644 --- a/check/app/server/api.py +++ b/check/app/server/api.py @@ -18,12 +18,16 @@ api = Blueprint('api', __name__) @api.route('/') def index(): - """API status noop""" + """ + API status test endpoint + """ return jsonify({ 'status': 'ok' }) @api.route('/v1/match/', methods=['POST']) def upload(): - """Search by image""" + """ + Search by uploading an image + """ start = time.time() file = request.files['query_img'] -- cgit v1.2.3-70-g09d2