I'm trying to serve an AngularJS application using the Play 2 Framework for Scala and I think I understand, in general, how the routes and the templates work.
In order to serve the angularJS files (which should NOT be available for users publicly), I'm currently placing them under
/public and then creating routes for them.
I would like to have a little more flexibility over where my angular js files are. I'm aware of the
assets.at() method that creates an action for this purpose but I cannot serve files that live anywhere other than
So I think my question is whether this is the right approach for what I have in mind (selective serving of angular JS files - depending upon permissions and so on ) and whether I'm stuck with having to place my angularJS app under
/public - is it not possible to serve files from anywhere else?