justinas/alice

gorilla-mux

isadon opened this issue · 1 comments

how is this used with gorilla mux for example?
--Update.. Got it working.. my issue was actually in my middleware.. However is there are reason for example that the Gorilla mux router can't be chained.. right now I have it as

alice.New(th.Throttle, timeoutHandler, authReq).Then(gorillaMuxRouter) to work..
if I do
alice.New(th.Throttle, timeoutHandler, authReq,gorillaMuxRouter).Then(nil)
then it won't work and I'll get a compile time error.

Yes, you only want nil if you use the default net/http ServeMux.