feat: add serveStatic middleware

This commit is contained in:
yangshangbo
2025-07-07 13:45:07 +08:00
parent a5bf8ebc7c
commit aca60cb4fa
10 changed files with 986 additions and 21 deletions
+9
View File
@@ -0,0 +1,9 @@
Hello from V-Hono static file server!
This is a test file from the ./public directory.
You can access this file directly via the root path (/).
Features demonstrated:
- Text file serving
- Content-Type detection
- Path mapping from URL to file system