From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- third_party/python/aiohttp/examples/static_files.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 third_party/python/aiohttp/examples/static_files.py (limited to 'third_party/python/aiohttp/examples/static_files.py') diff --git a/third_party/python/aiohttp/examples/static_files.py b/third_party/python/aiohttp/examples/static_files.py new file mode 100755 index 0000000000..65f6bb9c76 --- /dev/null +++ b/third_party/python/aiohttp/examples/static_files.py @@ -0,0 +1,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) -- cgit v1.2.3