archive
/
lantern
Archived
1
Fork 0
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.
lantern/lantern/main.py

13 lines
204 B
Python
Raw Normal View History

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")