2022-12-02 07:47:21 -06:00
|
|
|
import express from 'express'
|
|
|
|
|
|
|
|
function doReinjectVideoFileToken (req: express.Request) {
|
|
|
|
return req.query.videoFileToken && req.query.reinjectVideoFileToken
|
|
|
|
}
|
|
|
|
|
2023-03-07 03:52:20 -06:00
|
|
|
function buildReinjectVideoFileTokenQuery (req: express.Request, isMaster: boolean) {
|
|
|
|
const query = 'videoFileToken=' + req.query.videoFileToken
|
|
|
|
if (isMaster) {
|
|
|
|
return query + '&reinjectVideoFileToken=true'
|
|
|
|
}
|
|
|
|
return query
|
2022-12-02 07:47:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
doReinjectVideoFileToken,
|
|
|
|
buildReinjectVideoFileTokenQuery
|
|
|
|
}
|