Module

Bucketchain.Static

Package
purescript-bucketchain-static
Repository
Bucketchain/purescript-bucketchain-static

#Options Source

type Options = { maxAge :: Seconds, root :: String }

Middleware options.

  • root is root directory.
  • maxAge is max-age of Cache-Control. It should set seconds.

#withStatic Source

withStatic :: Options -> Middleware

Static file server middleware.