diff --git a/responder/api.py b/responder/api.py index eb4e60a..f63ba3e 100644 --- a/responder/api.py +++ b/responder/api.py @@ -316,6 +316,8 @@ class API: params = route.incoming_matches(req.url.path) + cont = True + if route.is_function: try: try: diff --git a/responder/routes.py b/responder/routes.py index 598ebf1..eb77071 100644 --- a/responder/routes.py +++ b/responder/routes.py @@ -1,5 +1,6 @@ import re import functools +import inspect from parse import parse @@ -59,7 +60,7 @@ class Route: @property def is_class_based(self): - return hasattr(self.endpoint, "__class__") + return inspect.isclass(self.endpoint) @property def is_function(self):