This repository is now a part of qubyte/toisu-monorepo.
A tiny wrapper around serve-static for Toisu!
This module accepts the same arguments as serve-static.
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);