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 a17611f commit 0f61ba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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():

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


@app.view("/test_decorator_view")
def decorator_view():
def get():
Expand All @@ -496,7 +497,6 @@ def post(request):
return {"status_code": 200, "body": body}



if __name__ == "__main__":
app.add_request_header("server", "robyn")
app.add_directory(
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 0f61ba1

Please sign in to comment.