diff --git a/docs/started.md b/docs/started.md index aa879e1..9d978e8 100644 --- a/docs/started.md +++ b/docs/started.md @@ -14,17 +14,19 @@ advantage of some new Python features. ```py -from vibora import Vibora, JsonResponse +from vibora import Vibora, Request +from vibora.responses import JsonResponse app = Vibora() @app.route('/') -async def home(): +async def home(request: Request): return JsonResponse({'hello': 'world'}) + if __name__ == '__main__': - app.run(host="0.0.0.0", port=8000) + app.run(debug=True, host='0.0.0.0', port=8000) ``` 3. Run the server: `python3 anything.py`