FOSJsRoutingBundle icon indicating copy to clipboard operation
FOSJsRoutingBundle copied to clipboard

[Question] how to handle unknown routes for angular js

Open awolder opened this issue 6 years ago • 0 comments

Hi, I am using a symfony backend, and an angular js front end. The FOSJsRoutingBundle works great in angular controllers IF the route has been exposed, however, if a referenced route is not exposed, it breaks the entire angular app. Is there a way to better handle unknown routes? For example, if a route exists, but the user does not have access to it, the angular http process gives me a rejection with an internal server error, which at least I can catch and present an error message without breaking the app. Overall - I like this bundle for how it simplifies my life with angular :)

awolder avatar Jun 04 '18 07:06 awolder