allow avatar to be downloaded on its old url

This commit is contained in:
Jakob Ketterl 2019-06-07 20:23:31 +02:00
parent e8a1a40dc0
commit b6e59e9b11

View File

@ -18,7 +18,9 @@ class Router(object):
{"route": "/status", "controller": StatusController}, {"route": "/status", "controller": StatusController},
{"regex": "/static/(.+)", "controller": AssetsController}, {"regex": "/static/(.+)", "controller": AssetsController},
{"route": "/ws/", "controller": WebSocketController}, {"route": "/ws/", "controller": WebSocketController},
{"regex": "(/favicon.ico)", "controller": AssetsController} {"regex": "(/favicon.ico)", "controller": AssetsController},
# backwards compatibility for the sdr.hu portal
{"regex": "/(gfx/openwebrx-avatar.png)", "controller": AssetsController}
] ]
def find_controller(self, path): def find_controller(self, path):
for m in Router.mappings: for m in Router.mappings: