pecan/pecan — Issue #37: RestController get_all not activating with tailing slash
Author: sexytyranno
Created: 2012-02-04 03:54:54+00:00
State: open

The Pecan [REST documentation](http://pecan.readthedocs.org/en/latest/rest.html#url-mapping) states that the REST controller's `get_all` method should work with a trailing slash present. However, in my tests, this didn't seem to be the case.

When I visited `/something`, the get_all method would fire, but when I instead visited `/something/`, I received the default Pecan error page.

A trimmed down RootController that exhibits this behavior:

```python
class SomeController(RestController):
@expose('json')
def get_all(self):
return dict(plans="Evil", heart="Missing")

class RootController(object):
something = SomeController()
```