2016-10-09 15:28:31 -07:00
|
|
|
from sanic import Sanic
|
|
|
|
from sanic.response import json
|
|
|
|
|
|
|
|
app = Sanic(__name__)
|
|
|
|
|
2016-10-14 19:53:49 -07:00
|
|
|
|
2016-10-09 15:28:31 -07:00
|
|
|
@app.route("/")
|
|
|
|
async def test(request):
|
2016-10-14 19:53:49 -07:00
|
|
|
return json({"test": True})
|
|
|
|
|
2016-10-09 15:28:31 -07:00
|
|
|
|
2016-10-14 19:53:49 -07:00
|
|
|
app.run(host="0.0.0.0", port=8000)
|