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
This commit is contained in:
Steffen Klee
2021-12-13 22:35:19 +01:00
parent ddf258855d
commit fe4993153c
4 changed files with 11 additions and 1 deletions

View File

@@ -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)