Skip to content

Commit

Permalink
Merge pull request #64 from CGDogan/patch-2
Browse files Browse the repository at this point in the history
Flask API typo
birm authored Jun 20, 2023
2 parents ed46374 + bfef69d commit f837890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SlideServer.py
Original file line number Diff line number Diff line change
@@ -216,7 +216,7 @@ def multiSlide(filepathlist):
@app.route("/getSlide/<image_name>")
def getSlide(image_name):
if(os.path.isfile("/images/"+image_name)):
return flask.send_from_directory(app.config["UPLOAD_FOLDER"], filename=image_name, as_attachment=True)
return flask.send_from_directory(app.config["UPLOAD_FOLDER"], image_name, as_attachment=True)
else:
return flask.Response(json.dumps({"error": "File does not exist"}), status=404)

@@ -551,7 +551,7 @@ def roiExtract():
@app.route('/roiextract/<file_name>')
def roiextract(file_name):

return flask.send_from_directory(app.config["ROI_FOLDER"],filename=file_name, as_attachment=True, cache_timeout=0 )
return flask.send_from_directory(app.config["ROI_FOLDER"], file_name, as_attachment=True, cache_timeout=0 )


# Google Drive API (OAuth and File Download) Routes

0 comments on commit f837890

Please sign in to comment.