mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Generate 5x video endpoints
This commit is contained in:
parent
44d9cfe987
commit
f96e155d7f
1 changed files with 14 additions and 1 deletions
|
|
@ -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
|
// Build routes for app types that support benchmark endpoints
|
||||||
const benchmarkRoutes = [
|
const benchmarkRoutes = [
|
||||||
...appRoutes,
|
...appRoutes,
|
||||||
|
|
@ -212,7 +223,9 @@ export default {
|
||||||
// Non-app routes
|
// Non-app routes
|
||||||
...videoRoutes,
|
...videoRoutes,
|
||||||
...categoryRoutes,
|
...categoryRoutes,
|
||||||
...benchmarkRoutes
|
...benchmarkRoutes,
|
||||||
|
|
||||||
|
...extraEndpoints
|
||||||
])
|
])
|
||||||
|
|
||||||
return Array.from(allEndpointsSet)
|
return Array.from(allEndpointsSet)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue