Skip to content

Commit

Permalink
docs: fix subrouter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jul 23, 2023
1 parent c627180 commit 122feb5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,17 +595,11 @@ from robyn import Robyn, SubRouter

app = Robyn(__file__)

sub_router = SubRouter("/sub_router")
sub_router = SubRouter(__file__, "/sub_router")

@sub_router.get("/hello")
def hello():
return "Hello, world"

web_socket = SubRouter("/web_socket")

@web_socket.message()
async def hello():
return "Hello, world"

app.include_router(sub_router)
```

0 comments on commit 122feb5

Please sign in to comment.