aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/icon.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-11-25 22:45:43 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-11-25 22:45:43 +0100
commitb2618e9404b84cc62d4becb02436233a0d53b375 (patch)
treea31f2dc76d23967fa0243374cf475923a4b7e451 /pyaggr3g470r/views/icon.py
parentUpdated default platform URL (for Heroku...). (diff)
downloadnewspipe-b2618e9404b84cc62d4becb02436233a0d53b375.tar.gz
newspipe-b2618e9404b84cc62d4becb02436233a0d53b375.tar.bz2
newspipe-b2618e9404b84cc62d4becb02436233a0d53b375.zip
Rfactorization. Just a start...
Diffstat (limited to 'pyaggr3g470r/views/icon.py')
-rw-r--r--pyaggr3g470r/views/icon.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/pyaggr3g470r/views/icon.py b/pyaggr3g470r/views/icon.py
deleted file mode 100644
index 2f51304a..00000000
--- a/pyaggr3g470r/views/icon.py
+++ /dev/null
@@ -1,14 +0,0 @@
-import base64
-from flask import Blueprint, Response, request
-from pyaggr3g470r.controllers import IconController
-from pyaggr3g470r.lib.view_utils import etag_match
-
-icon_bp = Blueprint('icon', __name__, url_prefix='/icon')
-
-@icon_bp.route('/', methods=['GET'])
-@etag_match
-def icon():
- icon = IconController().get(url=request.args['url'])
- headers = {'Cache-Control': 'max-age=86400',
- 'Content-Type': icon.mimetype}
- return Response(base64.b64decode(icon.content), headers=headers)
bgstack15