Fork me on GitHub
#pedestal
<
2016-07-03
>
adamfrey18:07:52

I see that if I want an interceptor to run for every route I can list it at the top level “/“ route in my router. But just for my understanding, why when I insert an interceptor at the beginning of the default interceptor list returned by create-server is my interceptor never called?

adamfrey18:07:45

here’s the interceptor list before the server is started:

(:my.app/my-interceptor
 :io.pedestal.http/log-request
 :io.pedestal.http.cors/allow-origin
 :io.pedestal.http/not-found
 :io.pedestal.http.ring-middlewares/content-type-interceptor
 :io.pedestal.http.route/query-params
 :io.pedestal.http.route/method-param
 :io.pedestal.http.ring-middlewares/resource
 :io.pedestal.http.secure-headers/secure-headers
 :io.pedestal.http.route/router)
and my interceptor is never called