Files
v-hono/public/sample.json
T

15 lines
420 B
JSON

{
"message": "Hello from v-hono Context.file!",
"features": [
"File serving with automatic Content-Type detection",
"Security validation against path traversal",
"Caching support with ETag and Last-Modified",
"Custom headers and options",
"Error handling for missing files"
],
"example": {
"endpoint": "/file/sample.json",
"content_type": "application/json",
"cached": true
}
}