on master help sign in
change eyre agent example to wire-based logic

also change path to /bind-foo from /eyre per @Fang- recommendations

commitd3e371fbfe35c59fae5aadafc6a92d474072abfc authortinnus-napbus <admin@tinnus-napbus.xyz> dateSat 26 Jun 2021, 10:34 (5 years ago) parent0a3be37
1 file changed+7−9
arvo/eyre/examples.md+7−9
arvo/eyre/examples.md+7−9
@@ -296,7 +296,7 @@ Note that this example does a lot of things manually for demonstrative purposes.
296296 `this
297297 %- (slog leaf+"Attempting to bind /foo." ~)
298298 :_ this
299− [%pass /eyre %arvo %e %connect `/'foo' %eyre-agent]~
299+ [%pass /bind-foo %arvo %e %connect `/'foo' %eyre-agent]~
300300 ::
301301 %handle-http-request
302302 =/ req !< (pair @ta inbound-request:eyre) vase
@@ -353,16 +353,14 @@ Note that this example does a lot of things manually for demonstrative purposes.
353353++ on-arvo
354354 |= [=wire =sign-arvo]
355355 ^- (quip card _this)
356− ?+ sign-arvo
356+ ?. ?=([%bind-foo ~] wire)
357357 (on-arvo:def [wire sign-arvo])
358− ::
359− [%eyre %bound *]
360− ?: accepted.sign-arvo
361− %- (slog leaf+"/foo bound successfully!" ~)
362− `this
363− %- (slog leaf+"Binding /foo failed!" ~)
358+ ?> ?=([%eyre %bound *] sign-arvo)
359+ ?: accepted.sign-arvo
360+ %- (slog leaf+"/foo bound successfully!" ~)
364361 `this
365− ==
362+ %- (slog leaf+"Binding /foo failed!" ~)
363+ `this
366364++ on-fail on-fail:def
367365--
368366```