mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Make app endpoints a generated value
This commit is contained in:
parent
ea17b014af
commit
63c405943e
7 changed files with 56 additions and 20 deletions
|
|
@ -4,6 +4,7 @@ import slugify from 'slugify'
|
|||
import axios from 'axios'
|
||||
|
||||
// import { statuses } from './build-app-list'
|
||||
// import { getAppEndpoint } from './app-derived'
|
||||
|
||||
|
||||
// console.log('process.env.GAMES_SOURCE', process.env.GAMES_SOURCE)
|
||||
|
|
@ -129,16 +130,21 @@ export default async function () {
|
|||
continue
|
||||
}
|
||||
|
||||
const category = {
|
||||
slug: 'games'
|
||||
}
|
||||
|
||||
gameList.push({
|
||||
name: game.Games,
|
||||
status,
|
||||
// url: `https://rawg.io/search?query=${encodeURIComponent(game.Games)}`,
|
||||
text: getStatusText(game),
|
||||
slug,
|
||||
endpoint: `/game/${slug}`,
|
||||
category: {
|
||||
slug: 'games'
|
||||
},
|
||||
// endpoint: getAppEndpoint({
|
||||
// slug,
|
||||
// category
|
||||
// }),//`/game/${slug}`,
|
||||
category,
|
||||
content: '',
|
||||
// relatedLinks: [],
|
||||
reports: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue