Skip to content

Config File Format

Alex Fong edited this page Feb 22, 2017 · 1 revision

The following is the format of the config file for LightningServer as specified by the common CS130 Winter 2017 API.

# This is a comment.

port 2020;  # This is also a comment.

path / StaticHandler {
  root /foo/bar;
}

path /echo EchoHandler {}

# Default response handler if no handlers match.
default NotFoundHandler {}
Clone this wiki locally