diff --git a/CHANGELOG.md b/CHANGELOG.md index a6dbc8dc..1fcf8440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## UNRELEASED + +** `reitit-ring` + +* New option `:not-found-handler` in `reitit.ring/create-resource-handler` to set how 404 is handled. Fixes [#89](https://github.com/metosin/reitit/issues/89), thanks to [valerauko](https://github.com/valerauko). + +** `reitit-spec` + +* updated deps: + +```clj +[metosin/spec-tools "0.7.2"] is available but we use "0.7.1" +``` + ## 0.2.3 (2018-09-24) ## `reitit-ring` diff --git a/doc/ring/static.md b/doc/ring/static.md index c94f3585..10a7b03c 100644 --- a/doc/ring/static.md +++ b/doc/ring/static.md @@ -50,11 +50,14 @@ A better way to serve files from conflicting paths, e.g. `"/*"`, is to serve the | key | description | | -----------------|-------------| -| :parameter | optional name of the wildcard parameter, defaults to unnamed keyword `:` -| :root | optional resource root, defaults to `"public"` -| :path | optional path to mount the handler to. Works only if mounted outside of a router. -| :loader | optional class loader to resolve the resources -| :index-files | optional vector of index-files to look in a resource directory, defaults to `["index.html"]` +| :parameter | optional name of the wildcard parameter, defaults to unnamed keyword `:` +| :root | optional resource root, defaults to `\"public\"` +| :path | optional path to mount the handler to. Works only if mounted outside of a router. +| :loader | optional class loader to resolve the resources +| :index-files | optional vector of index-files to look in a resource directory, defaults to `[\"index.html\"]` +| :not-found-handler | optional handler function to use if the requested resource is missing (404 Not Found) + + ### TODO