wai-middleware-static-0.1.0: WAI middleware that intercepts requests to static files.

Safe HaskellSafe-Infered




static :: MiddlewareSource

Serve static files out of the application root (current directory). If file is found, it is streamed to the client and no further middleware is run.

staticRoot :: Text -> MiddlewareSource

Like static, but only looks for static files in the given directory. Supplied path may be relative or absolute and is prepended to the requested path.

 static = staticRoot ""