aiohttp.web middleware to serve index files (e.g. index.html) when static directories are requested.
MIT License
aiohttp.web <http://aiohttp.readthedocs.org/en/stable/>
__ middleware to
serve index files (e.g. index.html) when static directories are requested.
.. code:: python
from aiohttp import web
from aiohttp_index import IndexMiddleware
app = web.Application(middlewares=[IndexMiddleware()])
app.router.add_static('/', 'static')
app
will now serve static/index.html
when /
is requested.
aiohttp <http://aiohttp.readthedocs.org/en/stable/>
__ (tested on