Skip to content

Commit

Permalink
Changed documentation link
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncoulton committed Mar 8, 2016
1 parent 1583c4c commit c4f677d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Watson-Routing
Process and route HTTP Request messages.

For full documentation please see `Read The
Docs <http://watson-http.readthedocs.org/>`__.
Docs <http://watson-routing.readthedocs.org/>`__.

Build Status
^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions watson/routing/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def _create_child_routes(self, definition, parent_route):
child['requires'] = dict_deep_update(child.get('requires', {}), parent_route.requires)
child['defaults'] = dict_deep_update(child.get('defaults', {}), parent_route.requires)
name = '{0}/{1}'.format(parent_route.name, name)
if 'path' not in child:
child['path'] = '/{}'.format(name)
child['path'] = '{0}{1}'.format(parent_route.path, child['path'])
child['name'] = name
self.add_definition(child)
Expand Down

0 comments on commit c4f677d

Please sign in to comment.