aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/static.ts8
1 files changed, 0 insertions, 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())
32 Cors is very important to let other servers access torrent and video files 32 Cors is very important to let other servers access torrent and video files
33*/ 33*/
34 34
35// FIXME: deprecated in 3.2, use lazy-statics instead
36// Due to historical reasons, we can't really remove this controller
37const torrentsPhysicalPath = CONFIG.STORAGE.TORRENTS_DIR
38staticRouter.use(
39 STATIC_PATHS.TORRENTS,
40 express.static(torrentsPhysicalPath, { maxAge: 0 }) // Don't cache because we could regenerate the torrent file
41)
42
43// Videos path for webseed 35// Videos path for webseed
44staticRouter.use( 36staticRouter.use(
45 STATIC_PATHS.WEBSEED, 37 STATIC_PATHS.WEBSEED,