Generate 5x video endpoints

This commit is contained in:
Sam Carlton 2021-01-04 15:51:08 -06:00
parent 44d9cfe987
commit f96e155d7f

View file

@ -187,6 +187,17 @@ export default {
})
})
const extraEndpoints = []
for (let i = 0; i < 5; i++) {
videoList.forEach( video => {
extraEndpoints.push({
route: getVideoEndpoint(video) + '-' + i,
payload: buildVideoPayload(video, allVideoAppsList, videoList)
})
})
}
// Build routes for app types that support benchmark endpoints
const benchmarkRoutes = [
...appRoutes,
@ -212,7 +223,9 @@ export default {
// Non-app routes
...videoRoutes,
...categoryRoutes,
...benchmarkRoutes
...benchmarkRoutes,
...extraEndpoints
])
return Array.from(allEndpointsSet)