From 737514cb7c629e8428c43f868f91140c7931e1ea Mon Sep 17 00:00:00 2001 From: amit-62 Date: Fri, 24 Jun 2022 22:38:13 +0530 Subject: [PATCH] fri udated --- fri/example.py | 2 +- fri/server/main.py | 4 ++-- fri/service_config.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fri/example.py b/fri/example.py index bff2a13..e78d17c 100644 --- a/fri/example.py +++ b/fri/example.py @@ -1 +1 @@ -print("amit") \ No newline at end of file +print("Concore/fri") \ No newline at end of file diff --git a/fri/server/main.py b/fri/server/main.py index 57e179d..6ee4624 100644 --- a/fri/server/main.py +++ b/fri/server/main.py @@ -13,8 +13,8 @@ app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER -@app.route('/multiple-files-upload', methods=['POST']) -def upload_file(): +@app.route('/upload', methods=['POST']) +def upload(): if 'files[]' not in request.files: resp = jsonify({'message' : 'No file in the request'}) resp.status_code = 400 diff --git a/fri/service_config.sh b/fri/service_config.sh index c41f37e..c6530e3 100644 --- a/fri/service_config.sh +++ b/fri/service_config.sh @@ -1,6 +1,6 @@ #!/bin/bash -SERVICES=('upload_file' 'execute') +SERVICES=('upload' 'execute') for service in "${SERVICES[@]}" do name="name="$service