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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user