From 54fdba72078b6bb7b6c2b05ad03c613462e1b342 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 2 Nov 2018 13:13:08 +1000 Subject: [PATCH] added empty html/css/js files --- .gitignore | 1 + static/script.js | 0 static/style.css | 0 templates/landing_page.html | 0 web.py | 7 ++++--- 5 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 static/script.js create mode 100644 static/style.css create mode 100644 templates/landing_page.html diff --git a/.gitignore b/.gitignore index 174b17b..13d0fb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +meta.json auth.json database.db diff --git a/static/script.js b/static/script.js new file mode 100644 index 0000000..e69de29 diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..e69de29 diff --git a/templates/landing_page.html b/templates/landing_page.html new file mode 100644 index 0000000..e69de29 diff --git a/web.py b/web.py index acf0b71..4c0f518 100755 --- a/web.py +++ b/web.py @@ -15,11 +15,12 @@ c = db.cursor() c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR NOT NULL, appid VARCHAR NOT NULL, appsecret VARCHAR NOT NULL, secret VARCHAR NOT NULL, latest_post VARCHAR)") app = Flask(cfg['name']) +app.secret_key = cfg['flask_key'] -@app.route('/login') -def auth(): - +@app.route('/') +def main(): + return "test" @app.route('/internal/auth_a') def internal_auth_a():