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():