What is the best way to share model data among resources/routes that don’t share a parent resource/route?
Details:
I have 2 top level resources whose model hooks retrieve almost the same data via Ajax. So their model hook code looks almost the same as well, i.e. not DRY. The difference is what they each do with that data. The goal is to keep their urls top level routes, like this:
example.com/#/resource1/...
example.com/#/resource2/...
not nested like this:
example.com/#/resource0/resource1/...
example.com/#/resource0/resource2/...
Question: How can I keep resource1 and resource2 top level resources/routes (not nest them within a common resource), but also not duplicate model hook code for each resource?