From 694f83921c5c43de47ce1b7298fbadcdd7a7a012 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 22 Dec 2024 04:52:16 +0200 Subject: AKFS get function from map hash --- src/js/url-generators.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/js/url-generators.js') 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 -- cgit v1.2.3