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,
text,
slug: appSlug,
// endpoint,
endpoint,
category,
// content: token.content,
relatedLinks

View file

@ -4,7 +4,7 @@ import slugify from 'slugify'
import axios from 'axios'
// 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)
@ -140,10 +140,10 @@ export default async function () {
// url: `https://rawg.io/search?query=${encodeURIComponent(game.Games)}`,
text: getStatusText(game),
slug,
// endpoint: getAppEndpoint({
// slug,
// category
// }),//`/game/${slug}`,
endpoint: getAppEndpoint({
slug,
category
}),//`/game/${slug}`,
category,
content: '',
// relatedLinks: [],

View file

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