Skip to content

Commit

Permalink
Merge pull request #179 from KeepSafe/named_routes
Browse files Browse the repository at this point in the history
Refactor named routes
  • Loading branch information
asvetlov committed Nov 28, 2014
2 parents 8bef679 + 202d866 commit ec67f8d
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 213 deletions.
10 changes: 0 additions & 10 deletions aiohttp/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,10 @@ class AbstractRouter(metaclass=ABCMeta):
def resolve(self, request):
"""Return MATCH_INFO for given request"""

@asyncio.coroutine
@abstractmethod
def reverse(self, method, endpoint, **kwargs):
"""Return URL string for """


class AbstractMatchInfo(metaclass=ABCMeta):

@property
@abstractmethod
def handler(self):
"""Return handler for match info"""

@property
@abstractmethod
def endpoint(self):
"""Return endpoint for match info"""
Loading

0 comments on commit ec67f8d

Please sign in to comment.