Pajk/apipie-rails — pull request #187 by mtparet (2014-01-23 08:41:26+00:00)
Title: Instead of manually redefine the route for the action, retrieve it from the routes of the application.

#### Description

Instead of manually redefine the route for the action, retrieve it from the routes of the application.
This enable also to have only place where to maintain the routing.

#### Example:

Instead of defining the name, HTTP verb, and route of the action.
```
api :POST, "/users", "Create user"
```

You could now just define the name of the action.
```
api_route 'Create user'
```
HTTP verb and route will be retrieved from the routes of the application.

#### Current limitation
Only one route is retrieved for an action.

There are possible improvements in the implementation.
Let me know what do you think about the idea and the implementation.