mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-06-05 22:09:12 +02:00
initial commit
This commit is contained in:
15
app/routes.py
Normal file
15
app/routes.py
Normal file
@ -0,0 +1,15 @@
|
||||
from aiohttp import web
|
||||
|
||||
|
||||
def setup_routes(app, handler):
|
||||
h = handler
|
||||
app.add_routes(
|
||||
[
|
||||
web.get('/', h.index, name='index'),
|
||||
web.get(r"/{id:\d+}/view", h.info, name='info'),
|
||||
web.get(r"/{id:\d+}/download", h.download_get),
|
||||
web.head(r"/{id:\d+}/download", h.download_head),
|
||||
web.get(r"/{id:\d+}/thumbnail", h.thumbnail_get),
|
||||
web.head(r"/{id:\d+}/thumbnail", h.thumbnail_head),
|
||||
]
|
||||
)
|
Reference in New Issue
Block a user