I would like to know if it's possible to make a generic route in Play Framework.
In MVC.Net you can do something like this:
routes.MapRoute("Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults);
With the above route, a lot of urls are covered. So it handles:
/customers
/customers/add
/orders/edit/29
etc.
When I want to do this in the Scala Play routing I have to declare a route for each url.
My questions is if it's possible to have some sort of generic routing in Play framework?