diff --git a/lantern/main.py b/lantern/main.py index e69de29..1561b07 100644 --- a/lantern/main.py +++ b/lantern/main.py @@ -0,0 +1,12 @@ +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") diff --git a/setup.py b/setup.py index 7836107..9376ba5 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ setup( name="lantern", version="1.0", install_requires=[ + "sanic==0.4.1" ], entry_points=""" [console_scripts]