aboutsummaryrefslogtreecommitdiff
path: root/app/main.py
diff options
context:
space:
mode:
authorSteffen Klee <steffen.klee@gmail.com>2021-12-13 22:35:19 +0100
committerSteffen Klee <steffen.klee@gmail.com>2021-12-13 22:35:19 +0100
commitfe4993153c168b27969dc0fae500b62504bba52a (patch)
tree5ad3086b8f9eabeccdaf7ce9602d69cef3b36e86 /app/main.py
parentfix sass syntax for dark mode (diff)
downloadmetube-fe4993153c168b27969dc0fae500b62504bba52a.tar.gz
metube-fe4993153c168b27969dc0fae500b62504bba52a.tar.bz2
metube-fe4993153c168b27969dc0fae500b62504bba52a.zip
Add download link to downloaded file
This adds a simple download link that points to the downloaded file. Note: This makes all files in the download directory (and its sub-directory) available to any user. Closes gh-26
Diffstat (limited to 'app/main.py')
-rw-r--r--app/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/main.py b/app/main.py
index 368db16..8b2a57f 100644
--- a/app/main.py
+++ b/app/main.py
@@ -108,6 +108,7 @@ if config.URL_PREFIX != '/':
return web.HTTPFound(config.URL_PREFIX)
routes.static(config.URL_PREFIX + 'favicon/', 'favicon')
+routes.static(config.URL_PREFIX + 'download/', config.DOWNLOAD_DIR)
routes.static(config.URL_PREFIX, 'ui/dist/metube')
app.add_routes(routes)
bgstack15