Does exist
[oweals/peertube.git] / server / controllers / static.ts
index b21f9da004ea87b63dee0fb2d11af60796f5f0d7..639445b74909743eafb25b3d780e665b8a01d93b 100644 (file)
@@ -1,6 +1,13 @@
 import * as cors from 'cors'
 import * as express from 'express'
-import { CONFIG, HLS_PLAYLIST_DIRECTORY, ROUTE_CACHE_LIFETIME, STATIC_DOWNLOAD_PATHS, STATIC_MAX_AGE, STATIC_PATHS } from '../initializers'
+import {
+  CONFIG,
+  HLS_STREAMING_PLAYLIST_DIRECTORY,
+  ROUTE_CACHE_LIFETIME,
+  STATIC_DOWNLOAD_PATHS,
+  STATIC_MAX_AGE,
+  STATIC_PATHS
+} from '../initializers'
 import { VideosPreviewCache } from '../lib/cache'
 import { cacheRoute } from '../middlewares/cache'
 import { asyncMiddleware, videosGetValidator } from '../middlewares'
@@ -53,9 +60,9 @@ staticRouter.use(
 
 // HLS
 staticRouter.use(
-  STATIC_PATHS.PLAYLISTS.HLS,
+  STATIC_PATHS.STREAMING_PLAYLISTS.HLS,
   cors(),
-  express.static(HLS_PLAYLIST_DIRECTORY, { fallthrough: false }) // 404 if the file does not exist
+  express.static(HLS_STREAMING_PLAYLIST_DIRECTORY, { fallthrough: false }) // 404 if the file does not exist
 )
 
 // Thumbnails path for express