Interface staticDirectoryHandler

Hierarchy

  • staticDirectoryHandler
  • StaticDirectoryHandler is similar to echo.StaticDirectoryHandler but without the directory redirect which conflicts with RemoveTrailingSlash middleware.

    If a file resource is missing and indexFallback is set, the request will be forwarded to the base index.html (useful also for SPA).

    Parameters

    • fileSystem: FS
    • indexFallback: boolean

    Returns HandlerFunc

Generated using TypeDoc