(def my-vhosts-model
(bidi.vhosts/vhosts-model ["<https://example.org:8443>"
["/index.html" :index]
["/login" :login]]
["<https://blog.example.org>"
["/posts.html" :posts]]))
(comment
(bidi.vhosts/uri-info my-vhosts-model :index))
i'm trying vhosts but can't get it working at all
:index
gives nil and :posts
raises exception
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 "<http://example.org:8443|example.org:8443>"}]
any reason why this wouldn't work with the latest yada?
Uri info requires a request