Aggregate configuration for connection between front and back end (AngularJS -> RoR)