split thumbnail from fileserve handler

This commit is contained in:
odysseusmax
2020-09-01 12:59:32 +05:30
parent fc7146cc30
commit f0e474a877
4 changed files with 75 additions and 41 deletions

View File

@ -65,7 +65,6 @@ async def setup_routes(app, handler):
web.get(p + r"/{id:\d+}/download", h.download_get),
web.head(p + r"/{id:\d+}/download", h.download_head),
web.get(p + r"/{id:\d+}/thumbnail", h.thumbnail_get),
web.head(p + r"/{id:\d+}/thumbnail", h.thumbnail_head),
]
routes += r
log.debug(f"Index added for {chat.id} :: {chat.title} at /{alias_id}")
@ -81,7 +80,6 @@ async def setup_routes(app, handler):
web.get(p + r"/{id:\d+}/download", h.download_get),
web.head(p + r"/{id:\d+}/download", h.download_head),
web.get(p + r"/{id:\d+}/thumbnail", h.thumbnail_get),
web.head(p + r"/{id:\d+}/thumbnail", h.thumbnail_head),
]
routes += r
log.debug(f"Index added for {chat.id} :: {chat.title} at /{alias_id}")