Skip to content

Commit

Permalink
Fix regression in hug object routing
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Sep 21, 2016
1 parent 91abc48 commit 002e308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hug/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def decorator(class_definition):
for method in HTTP_METHODS:
handler = getattr(instance, method.lower(), None)
if handler:
routes = getattr(handler, '_hug_routes', None)
routes = getattr(handler, '_hug_http_routes', None)
if routes:
for route in routes:
http(**router.accept(method).where(**route).route)(handler)
Expand Down

0 comments on commit 002e308

Please sign in to comment.