Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reel: new endpoint for getting urls async #286

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion desk/app/reel.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
arthyn marked this conversation as resolved.
Show resolved Hide resolved
=/ url (cat 3 vic u.token)
:_ this
~[[%give %fact ~[pole] %json !>(s+url)]]
==
::
++ on-leave on-leave:def
Expand Down
Loading