Remove deprecated torrent static route

pull/4468/head
Chocobozzz 2021-10-14 11:39:06 +02:00
parent cf0c8ee588
commit 37cd44d04f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 0 additions and 8 deletions

View File

@ -32,14 +32,6 @@ staticRouter.use(cors())
Cors is very important to let other servers access torrent and video files Cors is very important to let other servers access torrent and video files
*/ */
// FIXME: deprecated in 3.2, use lazy-statics instead
// Due to historical reasons, we can't really remove this controller
const torrentsPhysicalPath = CONFIG.STORAGE.TORRENTS_DIR
staticRouter.use(
STATIC_PATHS.TORRENTS,
express.static(torrentsPhysicalPath, { maxAge: 0 }) // Don't cache because we could regenerate the torrent file
)
// Videos path for webseed // Videos path for webseed
staticRouter.use( staticRouter.use(
STATIC_PATHS.WEBSEED, STATIC_PATHS.WEBSEED,