Add name to Sanic instance in Hello World Example (#2058)

This commit is contained in:
Andrea Stagi
2021-03-12 14:23:13 +01:00
committed by GitHub
parent b1a57a8b62
commit 1165663ec1

View File

@@ -118,7 +118,7 @@ Hello World Example
from sanic import Sanic from sanic import Sanic
from sanic.response import json from sanic.response import json
app = Sanic() app = Sanic("My Hello, world app")
@app.route('/') @app.route('/')
async def test(request): async def test(request):