Skip to content

Commit 3961ff9

Browse files
Fix error in mounting example
1 parent d43079d commit 3961ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blacksheep/docs/mounting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ parent_app.mount("/example-path", child_app)
2020
Example:
2121

2222
```python
23-
from blacksheep import Application
23+
from blacksheep import Application, Router
2424

2525
parent = Application()
2626

@@ -30,7 +30,7 @@ def parent_home():
3030
return "Hello, from the parent app"
3131

3232

33-
child = Application()
33+
child = Application(router=Router())
3434

3535

3636
@child.router.get("/")

0 commit comments

Comments
 (0)