Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
/ toisu-static Public archive

A simple wrapper around serve-static for Toisu!

License

Notifications You must be signed in to change notification settings

qubyte/toisu-static

Repository files navigation

This repository is now a part of qubyte/toisu-monorepo.

toisu-static

Greenkeeper badge

A tiny wrapper around serve-static for Toisu!

This module accepts the same arguments as serve-static.

Example

const http = require('http');
const Toisu = require('toisu');
const serveStatic = require('toisu-static');

const app = new Toisu();

// Serve the "public" directory (relative to the app root).
app.use(serveStatic('public'));

http.createServer(app.requestHandler).listen(3000);

About

A simple wrapper around serve-static for Toisu!

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published