mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
Added getJsonHyp method
This commit is contained in:
parent
dc969e44ee
commit
4f5887aca0
4 changed files with 20 additions and 16 deletions
|
@ -39,3 +39,9 @@ export async function getJsonPiped(path) {
|
|||
|
||||
return await getJson('https://' + root + path);
|
||||
}
|
||||
|
||||
export async function getJsonHyp(path) {
|
||||
const root = useStore().getItem('api') || 'hyperpipeapi.onrender.com';
|
||||
|
||||
return await getJson('https://' + root + path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue