aboutsummaryrefslogtreecommitdiff
path: root/src/js/url-generators.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-22 04:52:16 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-22 04:52:16 +0200
commit694f83921c5c43de47ce1b7298fbadcdd7a7a012 (patch)
tree86b8bbcbaaf5d82d4dfb57db1b2e8c911799c816 /src/js/url-generators.js
parenta84f6765711e92c668ecb3becd2b1ee12b36abe7 (diff)
downloadarching-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.js14
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