aboutsummaryrefslogtreecommitdiff
path: root/src/js/url-generators.js
diff options
context:
space:
mode:
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