0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00
hono/deno_dist/middleware/serve-static/module.mts
2022-07-18 11:56:07 +09:00

17 lines
489 B
TypeScript

// 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,
path: options.path,
manifest: options.manifest ? options.manifest : manifest,
})
}
export { module as serveStatic }