@swizzyweb/swizzy-web-service
    Preparing search index...

    Function SwizzyStatic

    • Creates a SwizzyMiddleware factory that serves static assets from a local directory.

      Type Parameters

      • STATE

      Parameters

      • props: { staticAssetsPath: string }
        • staticAssetsPath: string

          absolute or relative path to the static assets directory

      Returns SwizzyMiddleware<STATE>

      a SwizzyMiddleware that serves files via Express's static() handler