8 Commits

Author SHA1 Message Date
988ddded82 style update to standard v7 2016-07-03 18:50:11 +02:00
42bb9cb3a4 Add switch for GZIP Content-Encoding 2016-04-14 19:56:00 +02:00
c50532dd75 Allow disabling of CORS
It is desirable to disable CORS for development purposes in order to
validate same-origin policy and web security concepts. Additionally,
json-server could be used to show proxy concepts.

This change adds a new CLI option `--no-cors` which disables CORS by not
adding the CORS middleware. The change is backwards compatible since the
default behavior, i.e. adding CORS headers is retained.
2016-01-17 08:27:05 +01:00
b751cec815 Add gzip compression. Thanks to @Werner0 2016-01-07 20:12:19 +01:00
672393e915 Add --read-only option 2016-01-07 04:12:04 +01:00
4e27a0fa36 feature: add optional --quiet argument
Suppress log messages from output.

- Use logger middleware only if `--quiet` is `false`
2015-11-06 17:44:12 +01:00
6c6333fa6d Add static option 2015-09-19 10:48:56 +02:00
ccf67724e3 Refactor CLI and add tests 2015-07-15 18:44:33 +02:00