aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/shared/m3u8-playlist.ts
blob: e2a66efc02215c2186b30e796a39c8f057ea4e7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import express from 'express'

function doReinjectVideoFileToken (req: express.Request) {
  return req.query.videoFileToken && req.query.reinjectVideoFileToken
}

function buildReinjectVideoFileTokenQuery (req: express.Request) {
  return 'videoFileToken=' + req.query.videoFileToken
}

export {
  doReinjectVideoFileToken,
  buildReinjectVideoFileTokenQuery
}