Fork me on GitHub
#juxt
<
2019-11-19
>
apa51208:11:43

(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))

apa51208:11:59

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

apa51208:11:14

:index gives nil and :posts raises exception

apa51208:11:19

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 ""}]

apa51208:11:01

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

dominicm21:11:51

Uri info requires a request