From 52f38fa269ce9dbcac2502177530a790ed7644c0 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 14 Dec 2020 19:02:26 -0600 Subject: [PATCH] Add back endpoints to app lists for function --- helpers/build-app-list.js | 2 +- helpers/build-game-list.js | 10 +++++----- helpers/build-homebrew-list.js | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/helpers/build-app-list.js b/helpers/build-app-list.js index 99eb656..2e91e31 100644 --- a/helpers/build-app-list.js +++ b/helpers/build-app-list.js @@ -203,7 +203,7 @@ export default async function () { // url, text, slug: appSlug, - // endpoint, + endpoint, category, // content: token.content, relatedLinks diff --git a/helpers/build-game-list.js b/helpers/build-game-list.js index 64e84c9..0195a7b 100644 --- a/helpers/build-game-list.js +++ b/helpers/build-game-list.js @@ -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: [], diff --git a/helpers/build-homebrew-list.js b/helpers/build-homebrew-list.js index 8ef92ae..8389c3c 100644 --- a/helpers/build-homebrew-list.js +++ b/helpers/build-homebrew-list.js @@ -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: [