Fork me on GitHub
#pedestal
<
2018-01-10
>
hlship00:01:46

A question about

hlship00:01:21

Pedestal routing. One of my handlers is not getting invoked. Here's (mapv #(take 2 %)) of my routes (a set, in table format):

[("/assets/graphiql/*path" :head)
 ("/graphql" :post)
 ("/assets/graphiql/*path" :get)
 ("/graphql" :get)
 ("/" :get)]
But when I have a client GET /assets/graphiql/graphiql.css, I get a 404, as in, it's not matching.

hlship00:01:43

If I pprint out the expanded route:

{:path "/assets/graphiql/*path",
  :method :get,
  :path-constraints {:path "(.*)"},
  :path-re #"/\Qassets\E/\Qgraphiql\E/(.*)",
  :path-parts ["assets" "graphiql" :path],
  :interceptors
  [{:name nil,
    :enter
    #object[io.pedestal.interceptor$eval21530$fn__21531$fn__21532 0x277af0a3 "io.pedestal.interceptor$eval21530$fn__21531$fn__21532@277af0a3"],
    :leave nil,
    :error nil}],
  :route-name :com.walmartlabs.lacinia.pedestal/graphiql-get-assets,
  :path-params [:path]}
(that's just the key entry)

hlship00:01:25

All my other routes work fine.

hlship00:01:38

Ok, I don't think this is a Pedestal problem. I think some part of my app is overriding the route hash I generate.

hlship00:01:21

It was two different things in my application; Pedestal is working fine, of course.