mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add story to endpoint list
This commit is contained in:
parent
8d49abdbad
commit
f7968acbb6
1 changed files with 9 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import buildVideoList from './helpers/build-video-list.js'
|
||||||
import { buildVideoPayload, buildAppBenchmarkPayload } from './helpers/build-payload.js'
|
import { buildVideoPayload, buildAppBenchmarkPayload } from './helpers/build-payload.js'
|
||||||
|
|
||||||
import { categories, getAppCategory } from './helpers/categories.js'
|
import { categories, getAppCategory } from './helpers/categories.js'
|
||||||
import { getAppType, getAppEndpoint, getVideoEndpoint } from './helpers/app-derived.js'
|
import { hasStory, getAppType, getAppEndpoint, getVideoEndpoint } from './helpers/app-derived.js'
|
||||||
import { makeSearchableList } from './helpers/searchable-list.js'
|
import { makeSearchableList } from './helpers/searchable-list.js'
|
||||||
|
|
||||||
// Setup dotenv
|
// Setup dotenv
|
||||||
|
|
@ -236,6 +236,14 @@ class BuildLists {
|
||||||
|
|
||||||
// if ( isGame ) { console.log() }
|
// if ( isGame ) { console.log() }
|
||||||
|
|
||||||
|
// Add story endpoints for native apps
|
||||||
|
if ( hasStory( app ) ) {
|
||||||
|
const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )
|
||||||
|
|
||||||
|
this.endpointMaps.nuxt.set( `${getAppEndpoint(app)}/story/`, payload )
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Add benchmark endpoints for apps and games
|
// Add benchmark endpoints for apps and games
|
||||||
if ( appType === 'app' || appType === 'game' ) {
|
if ( appType === 'app' || appType === 'game' ) {
|
||||||
const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )
|
const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue