2016-10-09 23:28:31 +01:00
|
|
|
from sanic import Sanic
|
2017-05-13 15:01:35 +01:00
|
|
|
from sanic.response import json
|
2016-10-09 23:28:31 +01:00
|
|
|
|
|
|
|
app = Sanic(__name__)
|
|
|
|
|
2016-10-15 03:53:49 +01:00
|
|
|
|
2016-10-09 23:28:31 +01:00
|
|
|
@app.route("/")
|
|
|
|
async def test(request):
|
2017-05-13 15:01:35 +01:00
|
|
|
return json({"test": True})
|
2016-10-15 03:53:49 +01:00
|
|
|
|
2016-10-09 23:28:31 +01:00
|
|
|
|
2017-03-12 14:42:34 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
app.run(host="0.0.0.0", port=8000)
|