An extension to automate file serving in a specific directory.
- Automatic file serving of a directory.
- Customisable cache parameters.
npm install @serverful/public
const Public = require("@serverful/public");
// ...
Serve /public/**
resources automatically.
const MyServer = new Serverful(80);
MyServer.Gateway("public", Public("./WebContent/Public/"));
This module is licensed under Apache 2.0.