Skip to content

A file serving extension for the Serverful core

License

Notifications You must be signed in to change notification settings

ServerfulArch/Public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverful/Public

An extension to automate file serving in a specific directory.

Features

  • Automatic file serving of a directory.
  • Customisable cache parameters.

Links

Installation

npm install @serverful/public

const Public = require("@serverful/public");
// ...

Usage

Serve /public/** resources automatically.

const MyServer = new Serverful(80);
MyServer.Gateway("public", Public("./WebContent/Public/"));

This module is licensed under Apache 2.0.