I need to create a route the pattern of which needs to be configurable. The documentation for the :loaded event states that "This can be used as a hook point for handlers to define routes that depend on user configuration not known until runtime", so I tried the following:
on(:loaded) do
MyHandler.route config.my_pattern, :my_method, ...
end
However, it this appears to cause the route to be created multiple times (in my specs, I can see that using robot.handlers.first.routes). Is this not the way to do this? If not, what is?
Thanks for any hint!
Ingo
--You received this message because you are subscribed to the Google Groups "Lita" group.To unsubscribe from this group and stop receiving emails from it, send an email to litaio+un...@googlegroups.com.To post to this group, send email to lit...@googlegroups.com.Visit this group at http://groups.google.com/group/litaio.To view this discussion on the web visit https://groups.google.com/d/msgid/litaio/8d46bc8d-f0bf-4485-b0aa-1eec3ec2d28b%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.