Skip to content
Snippets Groups Projects
Verified Commit f0cfd48c authored by Torma Kristóf's avatar Torma Kristóf :alien:
Browse files

fix all the things

parent c422e313
No related branches found
No related tags found
No related merge requests found
.git/
.idea/
\ No newline at end of file
...@@ -102,3 +102,5 @@ venv.bak/ ...@@ -102,3 +102,5 @@ venv.bak/
# mypy # mypy
.mypy_cache/ .mypy_cache/
.idea/
\ No newline at end of file
from flask import Flask from flask import Flask
app = Flask(__name__) app = Flask(__name__)
@app.route("/") @app.route("/")
def readfile(): def readfile():
with open("/data/file.txt",'r') as inputfile: with open("/data/file.txt", 'r') as inputfile:
return inputFile.readline() return inputfile.readline()
if __name__ == "__main__": if __name__ == "__main__":
app.run(host='0.0.0.0', port=8080) app.run(host='0.0.0.0', port=8080)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment