Implemented basic webservice (hello-world style)

This commit is contained in:
Michael Mandl 2018-10-28 22:49:15 +01:00
parent 1a6fe9c87b
commit 029d857b94
2 changed files with 13 additions and 0 deletions

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
Flask==1.0.2

12
slider.py Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/python3
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello slider"
if __name__ == "__main__":
app.run()