mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 07:04:08 +00:00
12 lines
209 B
Python
12 lines
209 B
Python
from sanic import Sanic
|
|
from sanic.response import html
|
|
|
|
app = Sanic("sanic-app")
|
|
|
|
|
|
@app.route('/')
|
|
async def test(request):
|
|
return html("Hello from sanic!", 200)
|
|
|
|
if __name__ == '__main__':
|
|
app.run()
|