aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-14 11:39:06 +0200
committerChocobozzz <me@florianbigard.com>2021-10-14 11:39:06 +0200
commit37cd44d04f2ad4d90535d28340c78d8d85b31f18 (patch)
treed4a4185c285c83f1c0ffad6fae40e9f799c3b5ac
parentcf0c8ee588e37809d85ec1deec1e4fdfa0f122a5 (diff)
downloadPeerTube-37cd44d04f2ad4d90535d28340c78d8d85b31f18.tar.gz
PeerTube-37cd44d04f2ad4d90535d28340c78d8d85b31f18.tar.zst
PeerTube-37cd44d04f2ad4d90535d28340c78d8d85b31f18.zip
Remove deprecated torrent static route
-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,