@serverful/public

A file serving extension for the Serverful core

Usage no npm install needed!

<script type="module">
  import serverfulPublic from 'https://cdn.skypack.dev/@serverful/public';
</script>

README

Serverful/Public

An extension to automate file serving in a specific directory.

Features

  • Automatic file serving of a directory.

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.