This question is actually consisted of 2 questions.
One being how can I create a certain amount of routes, but all other routes call one HTML page (basically, I want Symfony2 to take in certain URL's, but everything else is being left to AngularJS).
get_user:
path: /api/getuser
defaults: { _controller: AcmeDemoBundle:Api:GetUser }
create_user:
path: /api/createuser
defaults: { _controller: AcmeDemoBundle:Api:CreateUser }
...
other:
path [[ what to put in? ]]
defaults: { _controller: AcmeDemoBundle:Main:GetPage }
Any url afterwards, angular should take in with ngRoute, through the backends other route.
Now the second question I have is, is it possible to restrict all routes (get_user, create_user...), except for the other route for any kind of call that isn't AJAX? For those who know ASP.NET, I want the result of naming a file _file.cshtml (you can't access it directly, but only through AJAX calls)