aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/controllers/static.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts
index a7b28704c..a645c496b 100644
--- a/server/controllers/static.ts
+++ b/server/controllers/static.ts
@@ -93,25 +93,6 @@ staticRouter.use(
93 express.static(thumbnailsPhysicalPath, { maxAge: STATIC_MAX_AGE.SERVER, fallthrough: false }) // 404 if the file does not exist 93 express.static(thumbnailsPhysicalPath, { maxAge: STATIC_MAX_AGE.SERVER, fallthrough: false }) // 404 if the file does not exist
94) 94)
95 95
96// DEPRECATED: use lazy-static route instead
97const avatarsPhysicalPath = CONFIG.STORAGE.AVATARS_DIR
98staticRouter.use(
99 STATIC_PATHS.AVATARS,
100 express.static(avatarsPhysicalPath, { maxAge: STATIC_MAX_AGE.SERVER, fallthrough: false }) // 404 if the file does not exist
101)
102
103// DEPRECATED: use lazy-static route instead
104staticRouter.use(
105 STATIC_PATHS.PREVIEWS + ':uuid.jpg',
106 asyncMiddleware(getPreview)
107)
108
109// DEPRECATED: use lazy-static route instead
110staticRouter.use(
111 STATIC_PATHS.VIDEO_CAPTIONS + ':videoId-:captionLanguage([a-z]+).vtt',
112 asyncMiddleware(getVideoCaption)
113)
114
115// robots.txt service 96// robots.txt service
116staticRouter.get('/robots.txt', 97staticRouter.get('/robots.txt',
117 asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.ROBOTS)), 98 asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.ROBOTS)),