mirror of
https://github.com/tloncorp/landscape.git
synced 2024-11-23 17:24:10 +03:00
Merge pull request #186 from tloncorp/ns/update-set-ship-url
Update reel set-ship URL
This commit is contained in:
commit
44d23f73ca
@ -8,7 +8,11 @@
|
||||
^- form:m
|
||||
=+ !<(vic=cord arg)
|
||||
;< our=@p bind:m get-our
|
||||
;< =json bind:m (fetch-json "{(trip vic)}bait/who")
|
||||
=/ url
|
||||
?: =(vic 'https://tlon.network/lure/')
|
||||
"https://tlon.network/v1/lure/bait/who"
|
||||
"{(trip vic)}/bait/who"
|
||||
;< =json bind:m (fetch-json url)
|
||||
=/ =ship (slav %p (so:dejs:format json))
|
||||
;< ~ bind:m (poke [our %reel] reel-command+!>([%set-ship ship]))
|
||||
(pure:m !>(~))
|
||||
|
Loading…
Reference in New Issue
Block a user