diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-04-15 14:43:57 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-04-15 14:43:57 +0200 |
| commit | e257e83f313a2976347b0a30f58e66b7bcbc1235 (patch) | |
| tree | 5f579594ca61f5ea6f8495187aa6eee65e670590 /check/app/server/api.py | |
| parent | 229ddbb5cbf228b13b44ecaa10ef931c68b97e5c (diff) | |
run flask
Diffstat (limited to 'check/app/server/api.py')
| -rw-r--r-- | check/app/server/api.py | 8 |
1 files changed, 6 insertions, 2 deletions
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'] |
