Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vpcarlos committed Oct 15, 2023
1 parent f285c30 commit 9529173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ from fastapi import FastAPI
from profyle.fastapi import ProfyleMiddleware

app = FastAPI()
app.add_middleware(ProfyleFastApiMiddleware, pattern='*/api/v2/*')
app.add_middleware(ProfyleMiddleware, pattern='*/api/v2/*')

@app.get("/items/{item_id}")
async def read_item(item_id: int):
Expand All @@ -68,7 +68,7 @@ from profyle.flask import ProfyleMiddleware

app = Flask(__name__)

app.wsgi_app = ProfyleFlaskMiddleware(app.wsgi_app, pattern='*/api/products*')
app.wsgi_app = ProfyleMiddleware(app.wsgi_app, pattern='*/api/products*')

@app.route("/")
def hello_world():
Expand Down

0 comments on commit 9529173

Please sign in to comment.