mirror of https://github.com/Chocobozzz/PeerTube
15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
|
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
|
||
|
}
|