diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-31 16:25:16 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-31 16:25:16 +0300 |
commit | 322dd96b995bc287f19384ed0dd122fe41495292 (patch) | |
tree | f93c61dd40a153326115acda4d2ac1d8217ff4c2 | |
parent | db840656a43a7d0f7224a70ed56b619884a1df85 (diff) | |
download | qvisqve-322dd96b995bc287f19384ed0dd122fe41495292.tar.gz |
Add: route for /favicon.ico
-rw-r--r-- | qvisqve/version_router.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qvisqve/version_router.py b/qvisqve/version_router.py index ed4e472..35dd911 100644 --- a/qvisqve/version_router.py +++ b/qvisqve/version_router.py @@ -27,8 +27,17 @@ class VersionRouter(qvisqve.Router): 'callback': self._version, 'needs-authorization': False, }, + { + 'method': 'GET', + 'path': '/favicon.ico', + 'callback': self._favicon, + 'needs-authorization': False, + }, ] + def _favicon(self, *args, **kwargs): + return qvisqve.not_found_response() + def _version(self, *args, **kwargs): version = { 'version': qvisqve.__version__, |