0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/deno_dist/middleware/serve-static/module.mts

16 lines
465 B
TypeScript
Raw Normal View History

2022-07-02 06:09:45 +00:00
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// For ES module mode
import manifest from '__STATIC_CONTENT_MANIFEST'
import type { ServeStaticOptions } from './serve-static'
import { serveStatic } from './serve-static'
const module = (options: ServeStaticOptions = { root: '' }) => {
return serveStatic({
root: options.root,
manifest: options.manifest ? options.manifest : manifest,
})
}
export { module as serveStatic }