From 10be27dad6cc2cbc1dd3bf446958369acbc55a24 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Tue, 17 Sep 2024 12:26:55 -0500 Subject: [PATCH 1/2] reel: new endpoint for getting urls async --- desk/app/reel.hoon | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/desk/app/reel.hoon b/desk/app/reel.hoon index 63d0cad8..016cba58 100644 --- a/desk/app/reel.hoon +++ b/desk/app/reel.hoon @@ -174,7 +174,10 @@ :: swap out the nonce for the token in our-metadata =. our-metadata (~(put by (~(del by our-metadata) nonce)) token u.md) - `this + :_ this + =/ url (cat 3 vic token) + =/ path (stab (cat 3 '/v1/id-link/' id)) + ~[[%give %fact ~[path] %json !>(s+url)]] :: %reel-undescribe ?> =(our.bowl src.bowl) @@ -238,6 +241,16 @@ :~ [%pass +.pole %agent dock %poke cage] [%pass /expire/[ship.pole]/[token.pole] %arvo %b [%wait (add ~h1 now.bowl)]] == + :: + [%v1 %id-link id=*] + =/ id (crip +:(spud id.pole)) + ?~ token=(~(get by stable-id) id) `this + ?: (~(has in open-describes) u.token) + :: when the confirmation comes back we'll send the fact + `this + =/ url (cat 3 vic u.token) + :_ this + ~[[%give %fact ~[pole] %json !>(s+url)]] == :: ++ on-leave on-leave:def From 13c2898ae06121f0638e36895da09825a55e49d3 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Tue, 17 Sep 2024 13:13:32 -0500 Subject: [PATCH 2/2] ops: version bump --- desk/desk.docket-0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desk/desk.docket-0 b/desk/desk.docket-0 index 2c7fc72b..d480d77f 100644 --- a/desk/desk.docket-0 +++ b/desk/desk.docket-0 @@ -4,7 +4,7 @@ glob-http+['https://bootstrap.urbit.org/glob-0v7.the2a.smdhg.89k09.6ar0t.gb5te.glob' 0v7.the2a.smdhg.89k09.6ar0t.gb5te] ::glob-ames+~zod^0v0 base+'landscape' - version+[1 25 0] + version+[1 26 2] website+'https://tlon.io' license+'MIT' ==