From 029d857b94547b3261905ff784c09569524b7163 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 28 Oct 2018 22:49:15 +0100 Subject: [PATCH] Implemented basic webservice (hello-world style) --- requirements.txt | 1 + slider.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 requirements.txt create mode 100755 slider.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f2e1e50 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Flask==1.0.2 diff --git a/slider.py b/slider.py new file mode 100755 index 0000000..1e23d2f --- /dev/null +++ b/slider.py @@ -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()