From efab60744e7284e245bbd6266755ab3ca1a37200 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sat, 31 Oct 2020 12:05:31 -0400 Subject: Rename demo to poller --- demo/__init__.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 demo/__init__.py (limited to 'demo') 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") -- cgit v1.2.3