Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Adham Salama committed Sep 4, 2022
1 parent 445c49f commit 2ebfad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def function_middleware(request: Request):
"""Logger middleware"""
print("This is the /hello route")

app = SimpleAPI(middleware=[function_middleware])
app = SimpleAPI()

@app.get("/hello", middleware=[function_middleware])
def hello():
Expand Down

0 comments on commit 2ebfad8

Please sign in to comment.