From 37cd44d04f2ad4d90535d28340c78d8d85b31f18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Oct 2021 11:39:06 +0200 Subject: [PATCH] Remove deprecated torrent static route --- server/controllers/static.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/controllers/static.ts b/server/controllers/static.ts index fe1629910..0d94cac9b 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -32,14 +32,6 @@ staticRouter.use(cors()) 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 staticRouter.use( STATIC_PATHS.WEBSEED,