Created
December 18, 2018 10:56
-
-
Save MattBlack85/0638ef87eb077eb46879d6c90a30cf7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aiohttp import web | |
async def hello(request): | |
print('HELLO') | |
return web.json_response({"Hello": "world"}) | |
app = web.Application() | |
app.add_routes([web.post('/', hello)]) | |
web.run_app(app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run with
python log_server.py