File size: 317 Bytes
5664427
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from aiohttp import web

async def aliveness_handler(request):
    return web.Response(text="Server is alive and kicking!")

app = web.Application()
app.router.add_get('/', aliveness_handler)
app.router.add_get('/health', aliveness_handler)

if __name__ == "__main__":
    web.run_app(app, host='0.0.0.0', port=8080)