mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Update CHANGELOG & Docs
This commit is contained in:
parent
5046aebec8
commit
ea6682b385
2 changed files with 22 additions and 5 deletions
14
CHANGELOG.md
14
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`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue