summaryrefslogtreecommitdiffstats
path: root/third_party/python/aiohttp/examples/static_files.py
blob: 65f6bb9c7646ced8f2db45140e5269be723bd2c8 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python3
import pathlib

from aiohttp import web

app = web.Application()
app.router.add_static("/", pathlib.Path(__file__).parent, show_index=True)

web.run_app(app)