Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliypopel committed Oct 16, 2024
1 parent 9bdad96 commit 5d3bf6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ from django_routify import Router
router = Router('/app', 'app', auto_trailing_slash=True)


# or @router.get('/hello-world')
@router.route('/hello-world', methods=['GET'])
@router.route('/hello-world', methods=['GET']) # or @router.get('/hello-world')
def hello_world(request: HttpRequest) -> HttpResponse:
return HttpResponse('Hello World!')
```
Expand Down

0 comments on commit 5d3bf6e

Please sign in to comment.