Add back endpoints to app lists for function

This commit is contained in:
Sam Carlton 2020-12-14 19:02:26 -06:00
parent c308df4db5
commit 52f38fa269
3 changed files with 11 additions and 11 deletions

View file

@ -203,7 +203,7 @@ export default async function () {
// url, // url,
text, text,
slug: appSlug, slug: appSlug,
// endpoint, endpoint,
category, category,
// content: token.content, // content: token.content,
relatedLinks relatedLinks

View file

@ -4,7 +4,7 @@ import slugify from 'slugify'
import axios from 'axios' import axios from 'axios'
// import { statuses } from './build-app-list' // import { statuses } from './build-app-list'
// import { getAppEndpoint } from './app-derived' import { getAppEndpoint } from './app-derived'
// console.log('process.env.GAMES_SOURCE', process.env.GAMES_SOURCE) // console.log('process.env.GAMES_SOURCE', process.env.GAMES_SOURCE)
@ -140,10 +140,10 @@ export default async function () {
// url: `https://rawg.io/search?query=${encodeURIComponent(game.Games)}`, // url: `https://rawg.io/search?query=${encodeURIComponent(game.Games)}`,
text: getStatusText(game), text: getStatusText(game),
slug, slug,
// endpoint: getAppEndpoint({ endpoint: getAppEndpoint({
// slug, slug,
// category category
// }),//`/game/${slug}`, }),//`/game/${slug}`,
category, category,
content: '', content: '',
// relatedLinks: [], // relatedLinks: [],

View file

@ -10,7 +10,7 @@ import axios from 'axios'
const marked = require('marked') const marked = require('marked')
const HTMLParser = require(`node-html-parser`) const HTMLParser = require(`node-html-parser`)
// import { getAppEndpoint } from './app-derived' import { getAppEndpoint } from './app-derived'
const statusesTranslations = { const statusesTranslations = {
@ -155,10 +155,10 @@ export default async function () {
// url: `https://formulae.brew.sh/formula/${formulae.name}`, // url: `https://formulae.brew.sh/formula/${formulae.name}`,
text: getStatusText(formulae), text: getStatusText(formulae),
slug, slug,
// endpoint: getAppEndpoint({ endpoint: getAppEndpoint({
// slug, slug,
// category category
// }),//`/formula/${slug}`, }),//`/formula/${slug}`,
category, category,
content: formulae.comments, content: formulae.comments,
relatedLinks: [ relatedLinks: [