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