From 24a02f6faf5f35a6abaaae2e74509d788bbfac25 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 15 May 2019 20:58:15 -0700 Subject: [PATCH] Adjust routes for reverse proxying --- inquisitor/app.py | 7 +------ inquisitor/templates/feed.html | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/inquisitor/app.py b/inquisitor/app.py index 88b69a6..a6f6533 100644 --- a/inquisitor/app.py +++ b/inquisitor/app.py @@ -22,7 +22,7 @@ dungeon = dungeon.Dungeon("dungeon") itemsources = core.load_all_sources("sources") -@app.route("/feed/") +@app.route("/") def root(): active_items = dungeon.get_active_items() logger.info("Found {} active items".format(len(active_items))) @@ -40,8 +40,3 @@ def deactivate(): item = dungeon.deactivate_item(params['source'], params['itemid']) return jsonify({'active': item['active']}) - -@app.route("/feed.css") -def css(): - with open("feed.css") as f: - return f.read() diff --git a/inquisitor/templates/feed.html b/inquisitor/templates/feed.html index 0c8f8d0..9ce3079 100644 --- a/inquisitor/templates/feed.html +++ b/inquisitor/templates/feed.html @@ -1,9 +1,9 @@ - +