2022-12-02 08:47:21 -05:00
|
|
|
import express from 'express'
|
|
|
|
|
|
|
|
function doReinjectVideoFileToken (req: express.Request) {
|
|
|
|
return req.query.videoFileToken && req.query.reinjectVideoFileToken
|
|
|
|
}
|
|
|
|
|
2023-03-07 04:52:20 -05: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 08:47:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
doReinjectVideoFileToken,
|
|
|
|
buildReinjectVideoFileTokenQuery
|
|
|
|
}
|