Play-2.6 Scala: JavaScript Content Generation Across Packages

I am using the content on JavaScript Routing for generating routes and some other JavaScript content. I have found that I am bound by packages.

For example, if I have a controller at com.myapp.controllers.foo.MyController with an endpoint generating JavaScript, I can only reference that endpoint in a view if that view is in views.foo. Can I import something in order to make that endpoint available everywhere? Since these are dynamically generated, I don’t know how they work.

Any insight is appreciated. Thanks.