serve_static_files: Middleware to serve static files

Description Usage Arguments

Description

Binds to get requests that aren't handled by specified paths. Should support all filetypes; returns image and octet-stream types as a raw string.

Usage

1
serve_static_files(jug, path = NULL, root_path = getwd())

Arguments

jug

the jug instance

path

the path to bind to, default = NULL (all paths)

root_path

the file path to set as root for the file server


jug documentation built on May 1, 2019, 10:31 p.m.