Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 18, 2023
1 parent 411be8c commit ceff604
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration_tests/base_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ async def async_raise():

# ===== Views =====


@app.view("/sync_decorator_view")
def sync_decorator_view():
def get():
Expand All @@ -505,6 +506,7 @@ async def post(request):
body = bytearray(request["body"]).decode("utf-8")
return {"status_code": 200, "body": body}


# ===== Main =====


Expand Down
1 change: 1 addition & 0 deletions robyn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def view(self, endpoint: str, const: bool = False):
:param endpoint str: endpoint to server the route
"""

def inner(handler):
return self.add_view(endpoint, handler, const)

Expand Down

0 comments on commit ceff604

Please sign in to comment.