This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-11 08:56:47 +01:00
|
|
|
from sanic import Sanic
|
|
|
|
from sanic.response import json
|
|
|
|
|
|
|
|
app = Sanic()
|
|
|
|
|
|
|
|
@app.route("/")
|
|
|
|
async def test(request):
|
|
|
|
return json({"hello": "world"})
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
app.run(host="0.0.0.0", port="8000")
|