From eb29d57496c263c371f009002c44ce7861c72e79 Mon Sep 17 00:00:00 2001 From: ronreg-ribdev <56719257+ronreg-ribdev@users.noreply.github.com> Date: Thu, 21 May 2020 03:30:07 -0700 Subject: [PATCH] Custom json --- urbit/app/bartinfo.hoon | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/urbit/app/bartinfo.hoon b/urbit/app/bartinfo.hoon index 6993477..1dced9d 100644 --- a/urbit/app/bartinfo.hoon +++ b/urbit/app/bartinfo.hoon @@ -100,8 +100,8 @@ ?+ site.url not-found:gen [%'~bartinfo' %css %index ~] (css-response:gen style) [%'~bartinfo' %js %tile ~] (js-response:gen tile-js) - [%'~bartinfo' %js %tileman ~] (js-response:gen tile-js) [%'~bartinfo' %js %index ~] (js-response:gen script) + [%'~bartinfo' %js %bogus ~] (js-response:gen (json-to-octs (bogus-json))) :: [%'~bartinfo' %img @t *] =/ name=@t i.t.t.site.url @@ -112,5 +112,11 @@ :: [%'~bartinfo' *] (html-response:gen index) == + ++ bogus-json + |= ~ + ^- json + %- pairs:enjs:format + :~ success+b+%.n + == :: --