Skip to content

Commit

Permalink
Make add-on store base end point part of the public API (#15893)
Browse files Browse the repository at this point in the history
Relates to #14974

Summary of the issue:
Add-on authors wish to have a stable API so that they can change the base URL of the add-on store.
This allows add-ons to use a mirror for the add-on store.

Description of user facing changes
None

Description of development approach
Change BASE_URL for the add-on store to be public
  • Loading branch information
seanbudd authored Dec 12, 2023
1 parent 8d2fc9f commit 7db27de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/addonStore/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from gui.addonStoreGui.viewModels.addonList import AddonListItemVM


_BASE_URL = "https://nvaccess.org/addonStore"
BASE_URL = "https://nvaccess.org/addonStore"
_LATEST_API_VER = "latest"
"""
A string value used in the add-on store to fetch the latest version of all add-ons,
Expand All @@ -54,11 +54,11 @@ def _getCurrentApiVersionForURL() -> str:


def _getAddonStoreURL(channel: Channel, lang: str, nvdaApiVersion: str) -> str:
return f"{_BASE_URL}/{lang}/{channel.value}/{nvdaApiVersion}.json"
return f"{BASE_URL}/{lang}/{channel.value}/{nvdaApiVersion}.json"


def _getCacheHashURL() -> str:
return f"{_BASE_URL}/cacheHash.json"
return f"{BASE_URL}/cacheHash.json"


class AddonFileDownloader:
Expand Down

0 comments on commit 7db27de

Please sign in to comment.