Skip to content

Commit

Permalink
Updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Mar 16, 2017
1 parent ce835ac commit 200cd01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,15 @@ recursively to find specific callable to handle request.

.. code-block:: python
class Nested(Controller):
from nanohttp import RestController
class Nested(RestController):
pass
class Root()
children = Nested()
Then you can access methods on nested controller using: ``http://host:port/nesteds/{method-name}``
Then you can access methods on nested controller using: ``http://host:port/children``
On the ``RestController`` dispatcher tries to dispatch request using HTTP method(verb) at first.

Expand Down

0 comments on commit 200cd01

Please sign in to comment.