Skip to content

Instantly share code, notes, and snippets.

@MattBlack85
Created December 18, 2018 10:56
Show Gist options
  • Save MattBlack85/0638ef87eb077eb46879d6c90a30cf7a to your computer and use it in GitHub Desktop.
Save MattBlack85/0638ef87eb077eb46879d6c90a30cf7a to your computer and use it in GitHub Desktop.
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)
@MattBlack85
Copy link
Author

run with python log_server.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment