Implemented basic webservice (hello-world style)
This commit is contained in:
parent
1a6fe9c87b
commit
029d857b94
2 changed files with 13 additions and 0 deletions
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Flask==1.0.2
|
12
slider.py
Executable file
12
slider.py
Executable 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()
|
Loading…
Reference in a new issue