file server content type headers

This commit is contained in:
2025-01-20 23:45:07 -07:00
parent 3b1a969145
commit fcba2014c2
4 changed files with 36 additions and 2 deletions

View File

@@ -73,6 +73,11 @@ router.serveDirectory('dirWithIndexHtml', '/indexes', {showIndex: true});
### File-based Routing
**Note:** _This is an experimental feature and may change in the future.
Currently, JSR does not support dynamic imports for external modules in Deno. In
order to use this feature, you will need to install as an HTTP module (available
soon)._
```ts
import { FileRouter } from "@bearmetal/router";