diff options
author | Galen Guyer <galen@galenguyer.com> | 2020-10-31 12:05:31 -0400 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2020-10-31 12:05:31 -0400 |
commit | efab60744e7284e245bbd6266755ab3ca1a37200 (patch) | |
tree | b79c22eebbdaf16c1d800e596bc7c49a772662d2 /demo | |
parent | 1009968ea0ca43ef1b1bc421f7694f1f70707948 (diff) |
Rename demo to poller
Diffstat (limited to 'demo')
-rw-r--r-- | demo/__init__.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/demo/__init__.py b/demo/__init__.py deleted file mode 100644 index 86af046..0000000 --- a/demo/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -""" A small flask Hello World """ - -import os -import subprocess - -from flask import Flask, jsonify - -APP = Flask(__name__) - -# Load file based configuration overrides if present -if os.path.exists(os.path.join(os.getcwd(), 'config.py')): - APP.config.from_pyfile(os.path.join(os.getcwd(), 'config.py')) -else: - APP.config.from_pyfile(os.path.join(os.getcwd(), 'config.env.py')) - -APP.secret_key = APP.config['SECRET_KEY'] - -@APP.route('/') -def _index(): - return jsonify(status=200, response="OK") |