diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-22 04:52:16 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-22 04:52:16 +0200 |
commit | 694f83921c5c43de47ce1b7298fbadcdd7a7a012 (patch) | |
tree | 86b8bbcbaaf5d82d4dfb57db1b2e8c911799c816 /src/js/url-generators.js | |
parent | a84f6765711e92c668ecb3becd2b1ee12b36abe7 (diff) | |
download | arching-kaos-web-ui-694f83921c5c43de47ce1b7298fbadcdd7a7a012.tar.gz arching-kaos-web-ui-694f83921c5c43de47ce1b7298fbadcdd7a7a012.tar.bz2 arching-kaos-web-ui-694f83921c5c43de47ce1b7298fbadcdd7a7a012.zip |
AKFS get function from map hash
Diffstat (limited to 'src/js/url-generators.js')
-rw-r--r-- | src/js/url-generators.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/js/url-generators.js b/src/js/url-generators.js index 1bfe881..465de59 100644 --- a/src/js/url-generators.js +++ b/src/js/url-generators.js @@ -56,5 +56,19 @@ export function getTrustlinesURL(code=null, issuer=null) '&asset_issuer='+issuer; } +export function akfsGetMapURL(hash=null) +{ + return settings.ak.connect.list[settings.ak.connect.active]+'/v0/map/'+hash; +} + +export function akfsGetLeafURL(hash=null) +{ + return settings.ak.connect.list[settings.ak.connect.active]+'/v0/leaf/'+hash; +} + +export function akfsGetChunkURL(hash=null) +{ + return settings.ak.connect.list[settings.ak.connect.active]+'/v0/chunk/'+hash; +} // vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4 // @license-end |