Fork me on GitHub
#pedestal
<
2018-06-27
>
danbunea10:06:38

I'm a newbie with pedestal and I am trying to proxy all the requests I get from a browser, except a few specific ones which need some extra interceptors. These are my routes: (def routes #{ ["/*proxy" :any [(proxy-handler (server :dan-server))]] ["/service/storyboard/StoryboardLayer/auto" :post [dummy-interceptor (proxy-handler (server :dan-server))] :route-name :save-layer-route] }) However I never get the dummy-interceptor called. How should these be combined?

ddeaguiar12:06:15

@danbunea your wildcard route is too greedy and matches all incoming requests

danbunea12:06:39

Yes, that's the problem!

danbunea13:06:43

Thanks, I will check it out now! 🙂