Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdmr authored Mar 4, 2022
1 parent 6a90854 commit 561dcfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ Note that `azure-functions-worker` should not be included in this file as the Py

The following code shows the use of `AsgiMiddleware`, which redirects the invocations to FastAPI handler.
```python

import azure.functions as func
from FastAPIApp import app
import nest_asyncio

nest_asyncio.apply()

async def main(req: func.HttpRequest, context: func.Context) -> func.HttpResponse:
Expand Down

0 comments on commit 561dcfb

Please sign in to comment.