juxt

apa512 2019-11-19T08:30:19.042300Z

@apa512 has joined the channel

apa512 2019-11-19T08:33:43.042600Z

(def my-vhosts-model
  (bidi.vhosts/vhosts-model [""
                             ["/index.html" :index]
                             ["/login" :login]]

                            [""
                             ["/posts.html" :posts]]))

(comment
 (bidi.vhosts/uri-info my-vhosts-model :index))

apa512 2019-11-19T08:33:59.042900Z

i'm trying vhosts but can't get it working at all

apa512 2019-11-19T08:35:14.043900Z

:index gives nil and :posts raises exception

apa512 2019-11-19T08:35:19.044100Z

Execution error (ExceptionInfo) at bidi.bidi/eval5731$fn (bidi.cljc:125).
If a PatternSegment is represented by a vector, the second element
                               must be the key associated with the pattern: [
{:scheme :https, :host ""}]

apa512 2019-11-19T08:36:01.044700Z

any reason why this wouldn't work with the latest yada?

tomd 2019-11-19T09:12:42.045100Z

@tomd has joined the channel

Johanna 2019-11-19T10:24:42.045300Z

@j.antonelli712 has joined the channel

dominicm 2019-11-19T21:40:51.045600Z

Uri info requires a request

agold 2019-11-19T21:56:16.045800Z

@agold has joined the channel