diff options
| author | cashmere <cashmere@autistici.org> | 2026-06-19 22:44:00 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-06-19 22:44:00 +0200 |
| commit | 947f58b0819318945a820e17b2a3617170936588 (patch) | |
| tree | 59af97207704b686d71fcbff43f36bbd43c73483 | |
| parent | 0eba0062e84b52afa2afbbb797fbaa2ec9a2344f (diff) | |
| download | technical-renaissance-947f58b0819318945a820e17b2a3617170936588.tar.gz | |
app.py: serve static files
| -rw-r--r-- | src/technical_renaissance/app.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/technical_renaissance/app.py b/src/technical_renaissance/app.py index a35ec2d..7035c13 100644 --- a/src/technical_renaissance/app.py +++ b/src/technical_renaissance/app.py @@ -14,8 +14,14 @@ def return_config(path: Path) -> Config: with path.open("rb") as config: return cast(Config, tomllib.load(config)) + app = Robyn(__file__) +app.serve_directory( + route="/static", + directory_path="./static", +) + @app.get("/") async def root(_request: Request): |
