diff --git a/docs/features.md b/docs/features.md index 2add9bac8..c98c2cf1f 100644 --- a/docs/features.md +++ b/docs/features.md @@ -114,7 +114,7 @@ Robyn accepts dictionaries to build a response for the route: async def dictionary(request): return { "status_code": 200, - "body": "This is a regular response", + "description": "This is a regular response", "type": "text", "headers": {"Header": "header_value"}, } diff --git a/robyn/__init__.py b/robyn/__init__.py index ca54a5e2f..9acb80301 100644 --- a/robyn/__init__.py +++ b/robyn/__init__.py @@ -99,6 +99,8 @@ def add_route( } route_type = http_methods[route_type] + logger.info(f"Logging endpoint: method={route_type}, route={endpoint}") + return self.router.add_route( route_type, endpoint, handler, is_const, self.exception_handler )