mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Remove extra endpoints
This commit is contained in:
parent
ce0bd8b7f8
commit
5f51f4958a
1 changed files with 17 additions and 15 deletions
|
|
@ -30,25 +30,27 @@ const listsOptions = [
|
||||||
|
|
||||||
const videoListOptions = {
|
const videoListOptions = {
|
||||||
buildMethod: async buildArgs => {
|
buildMethod: async buildArgs => {
|
||||||
const videoList = await buildVideoList( buildArgs )
|
return await buildVideoList( buildArgs )
|
||||||
|
|
||||||
const extraVideos = []
|
// const videoList = await buildVideoList( buildArgs )
|
||||||
|
|
||||||
const multiplier = 12
|
// const extraVideos = []
|
||||||
|
|
||||||
for (let i = 0; i < multiplier; i++) {
|
// const multiplier = 12
|
||||||
videoList.forEach( video => {
|
|
||||||
extraVideos.push({
|
|
||||||
...video,
|
|
||||||
slug: video.slug + '-' + i,
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
return [
|
// for (let i = 0; i < multiplier; i++) {
|
||||||
...videoList,
|
// videoList.forEach( video => {
|
||||||
...extraVideos
|
// extraVideos.push({
|
||||||
].slice(0, 10 * 1000)
|
// ...video,
|
||||||
|
// slug: video.slug + '-' + i,
|
||||||
|
// })
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return [
|
||||||
|
// ...videoList,
|
||||||
|
// ...extraVideos
|
||||||
|
// ].slice(0, 10 * 1000)
|
||||||
},
|
},
|
||||||
path: '/static/video-list.json',
|
path: '/static/video-list.json',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue