Fork me on GitHub
#reitit
<
2019-04-23
>
henrik15:04:40

Have you guys ever stuck Reitit in Datomic Ions? I'm getting this stuff when I ionize the ring handler.

henrik15:04:57

For,

(def router
  (ring/ring-handler
    (ring/router
      [["/dev" {:get root-handler}]
       ["/api/search" search-api-handler]
       ["/api/suggestions" suggestions-api-handler]
       ["/api/journal" journal-api-handler]
       ["/" {:get root-handler}]
       ["/search/*" {:get root-handler}]
       ["/*" (ring/create-resource-handler)]]
      {:conflicts (constantly nil)})
    (ring/create-default-handler)))


(def web-entry-point (apigw/ionize router))

ikitommi15:04:04

@henrik the :uri seems to be nil. Haven't used ions, but I guess it's under a different key there

henrik15:04:29

This is theoretically the layout of the request coming from API GateWay: https://docs.datomic.com/cloud/ions/ions-reference.html#web-code

henrik15:04:49

Astute observation. I'm not sure why the URI would come out nil.