mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Fix url not returning json
This commit is contained in:
parent
bd2fd082f0
commit
e47efb6717
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ export function generateAPI ( {
|
||||||
return new Proxy(callable, {
|
return new Proxy(callable, {
|
||||||
get({ url }, propKey) {
|
get({ url }, propKey) {
|
||||||
// If we're just getting the url, return it
|
// 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
|
// If we're using an HTTP method
|
||||||
// then do a request to the url
|
// then do a request to the url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue