From 7611e381a8e3717d3b8a77b299c22042b9c97ea6 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 17 Oct 2026 20:10:30 -0400 Subject: make url scheme compatible --- frontend/src/store.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'frontend') diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx index cd880789..55017a66 100644 --- a/frontend/src/store.tsx +++ b/frontend/src/store.tsx @@ -53,7 +53,7 @@ export async function getStore(): Promise { export async function getStoreBaseURL(): Promise { let store = await getSetting('store', null); - let customURL = await getSetting('store-url', 'https://plugins.deckbrew.xyz'); + let customURL = await getSetting('store-url', 'https://plugins.deckbrew.xyz/plugins'); let storeURL; if (store === null) { console.log('Could not get store, using Default.'); @@ -62,17 +62,17 @@ export async function getStoreBaseURL(): Promise { } switch (+store) { case Store.Default: - storeURL = 'https://plugins.deckbrew.xyz'; + storeURL = 'https://plugins.deckbrew.xyz/plugins'; break; case Store.Testing: - storeURL = 'https://testing.deckbrew.xyz'; + storeURL = 'https://testing.deckbrew.xyz/plugins'; break; case Store.Custom: storeURL = customURL; break; default: console.error('Somehow you ended up without a standard URL, using the default URL.'); - storeURL = 'https://plugins.deckbrew.xyz'; + storeURL = 'https://plugins.deckbrew.xyz/plugins'; break; } return storeURL; @@ -91,7 +91,7 @@ export async function getPluginList( const storeURL = await getStoreBaseURL(); - return fetch(storeURL + '/plugins' + query, { + return fetch(storeURL + query, { method: 'GET', headers: { 'X-Decky-Version': version.current, -- cgit v1.2.3