What is the best way to share model data among resources/routes that don’t share a parent resource/route?
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:
not nested like this:
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?