stevehodgkiss/restful-routing — pull request #60 by davidalpert (2013-03-04 16:52:18+00:00)
Title: adding the ability to re-route the standard resource member actions

I love how this library guides me naturally towards a restful way of thinking.

That said, there are some endpoints that I constantly want to re-route in favor of more human-readable and commonly discoverable urls:

method	route	controller#action

GET	~/signup	account#new

GET	~/login	session#new

POST	~/login	session#create

This branch includes my attempt to refactor the path part of the ResourceMapper and expose overrides that support this use case:

```csharp
public class mapping_resource_with_reroute_overrides : base_context
{
static ResourceMapper _mapper;

Establish context = () =>
{
_mapper = new ResourceMapper();
_mapper.ReRoute(c => c.New = "signup");
};

Because of = () => _mapper.RegisterRoutes(routes);

It should_map_get_new = () => "~/signup".WithMethod(HttpVerbs.Get).ShouldMapTo(x => x.New()).WithName("new_session");
}
```

Feedback is welcome, as is the decision whether or not this change is in keeping with the philosophy of the project.