From e47efb67174699e3a69960c9e11c339c7c714543 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 21 May 2022 11:58:11 -0500 Subject: [PATCH] Fix url not returning json --- helpers/api/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/api/client.js b/helpers/api/client.js index aaf9bfe..6aaff06 100644 --- a/helpers/api/client.js +++ b/helpers/api/client.js @@ -53,7 +53,7 @@ export function generateAPI ( { return new Proxy(callable, { get({ url }, propKey) { // If we're just getting the url, return it - if ( propKey === 'url' ) return url + if ( propKey === 'url' ) return `${ url }.json` // If we're using an HTTP method // then do a request to the url