Static file serving for v-hono-core framework.
- Serve static files from local filesystem
- File caching support
- MIME type detection
- Directory indexing (optional)
v install --git https://github.com/v-hono/v-hono-core
v install --git https://github.com/v-hono/v-hono-staticimport hono
import hono_static
fn main() {
mut app := hono.Hono.new()
// Serve files from ./public directory at /static path
app.use(hono_static.serve_static(hono_static.StaticOptions{
root: './public'
path: '/static'
}))
app.listen(':3000')
}hono- Core framework
MIT