1
1
mirror of https://github.com/urbit/shrub.git synced 2024-12-26 13:31:36 +03:00
shrub/pkg/arvo/lib/file-server.hoon

27 lines
479 B
Plaintext
Raw Normal View History

2020-05-28 21:36:31 +03:00
/- sur=file-server
^?
=< [sur .]
=, sur
|%
++ enjs
=, enjs:format
|%
++ update
|= upd=^update
^- json
2020-05-28 21:36:31 +03:00
|^ (frond %file-server (pairs ~[(encode upd)]))
::
++ encode
|= upd=^update
^- [cord json]
?- -.upd
%configuration
=* prefix landscape-homepage-prefix.configuration.upd
:- %configuration
%- pairs
[%landscape-homepage-prefix ?~(prefix ~ s+u.prefix)]~
==
--
--
--