Learn R Programming

jug (version 0.1.7)

serve_static_files: Middleware to serve static files

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

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