initial commit

This commit is contained in:
odysseusmax
2020-08-10 07:27:52 +00:00
commit 3b1178e7d7
15 changed files with 535 additions and 0 deletions

15
app/routes.py Normal file
View 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),
]
)