@written/static
v0.1.24
Published
@written/app Static File Serving Middleware
Downloads
4
Readme
@written/static
Static file serving middleware for Written.
Installation
In your function, run:
pnpm i @written/static
Usage
import App from '@written/app';
import static from '@written/static';
const app = new App();
app.use(
static({
directory: `${__dirname}/../`, // Additional optional options can be found in the type declaration
}),
);
export default app.server();