Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Remove deprecated static routes

Chocobozzz0472d474fdad
diff --git a/server/controllers/static.ts b/server/controllers/static.ts
index a7b28704ca..a645c496b1 100644
--- a/server/controllers/static.ts
+++ b/server/controllers/static.ts
@@ -93,25 +93,6 @@ staticRouter.use(
express.static(thumbnailsPhysicalPath, { maxAge: STATIC_MAX_AGE.SERVER, fallthrough: false }) // 404 if the file does not exist
)
-// DEPRECATED: use lazy-static route instead
-const avatarsPhysicalPath = CONFIG.STORAGE.AVATARS_DIR
-staticRouter.use(
- STATIC_PATHS.AVATARS,
- express.static(avatarsPhysicalPath, { maxAge: STATIC_MAX_AGE.SERVER, fallthrough: false }) // 404 if the file does not exist
-)
-
-// DEPRECATED: use lazy-static route instead
-staticRouter.use(
- STATIC_PATHS.PREVIEWS + ':uuid.jpg',
- asyncMiddleware(getPreview)
-)
-
-// DEPRECATED: use lazy-static route instead
-staticRouter.use(
- STATIC_PATHS.VIDEO_CAPTIONS + ':videoId-:captionLanguage([a-z]+).vtt',
- asyncMiddleware(getVideoCaption)
-)
-
// robots.txt service
staticRouter.get('/robots.txt',
asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.ROBOTS)),