Skip to content

Instantly share code, notes, and snippets.

@diogommartins
Last active May 5, 2019 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogommartins/eb0077a636f6219ad707ed0287c2dce7 to your computer and use it in GitHub Desktop.
Save diogommartins/eb0077a636f6219ad707ed0287c2dce7 to your computer and use it in GitHub Desktop.
from aiohttp import web
async def perform_transaction(request: web.Request) -> web.Response:
return web.Response(body="Hello world!")
app = web.Application()
app.add_routes([web.get('/', perform_transaction)])
web.run_app(app, port=8000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment