Commit graph

157 commits

Author SHA1 Message Date
Miikka Koskinen
5824d9eeef Make the not-found-handler fix backwards compatible
PR #471 aimed to fix issue #464. However, the change was slightly
backwards-incompatible, since it made the file and resource handlers use
the default 404 handler when mounted outside of the router. The previous
behavior was to return nil in that case.

This patch restores the previous behavior and clarifies that `:path`
option can be used only when the file/resource handler is mounted
outside of a router.
2021-02-26 08:14:01 +02:00
Kari Marttila
902b33f004 Support not-found-handler with path in resource handler (#464) 2021-02-19 15:17:26 +02:00
Tommi Reiman
f43a8311fc 0.5.12 2021-02-04 20:40:25 +02:00
Tommi Reiman
b4099169be 0..5.11 with updated deps 2020-12-27 22:50:02 +02:00
Juho Teperi
12d3dcabec Fix #457, fix reflection warning in reitit.ring 2020-12-19 19:50:35 +02:00
Tommi Reiman
0b2c4d0d8e 0.5.10 2020-10-22 00:10:52 +03:00
Tommi Reiman
dbf3751815 0.5.9 2020-10-19 10:46:38 +03:00
Tommi Reiman
ff647f3a2c 0.5.8 2020-10-19 08:31:29 +03:00
Tommi Reiman
8c3ad99276 0.5.7 2020-10-18 20:43:24 +03:00
Kimmo Rantala
2ed5b48067 Fix resource handler path matching
File/resource handler checks that uri actually matches to path instead
of comparing just path length to uri length.
2020-10-15 23:33:20 +03:00
Tommi Reiman
5e290db106 0.5.6 2020-09-26 16:08:34 +03:00
Tommi Reiman
43e1a520d6 0.5.5 2020-07-15 11:28:11 +03:00
Tommi Reiman
274d527d2f 0.5.4 (with latest malli) 2020-07-13 11:08:19 +03:00
Tommi Reiman
56cbd67abd 0.5.3 2020-07-09 22:06:04 +03:00
Tommi Reiman
e30e739a15 0.5.2 2020-05-27 08:32:38 +03:00
Tommi Reiman
e649ed22b9 New options for malli coercion 2020-05-26 08:09:35 +03:00
Tommi Reiman
50f0120e8c 0.5.1 2020-05-18 15:00:28 +03:00
Tommi Reiman
500a4cc809 0.5.0 2020-05-17 18:42:33 +03:00
Tommi Reiman
920c9d7cfd nil-punning on routes 2020-05-17 10:34:44 +03:00
Tommi Reiman
d36c47d7b1 :reitit.ring/default-options-endpoint & :reitit.http/default-options-endpoint 2020-05-12 21:21:39 +03:00
Tommi Reiman
fd0d7cc46c Add create-file-handler, fixes #395 2020-05-12 21:05:12 +03:00
Tommi Reiman
b8b442b598 Fix #394 2020-05-12 21:05:12 +03:00
Tommi Reiman
79c430d298 Fix tests 2020-05-12 21:04:35 +03:00
Tommi Reiman
9e7df6ca03 Support expand on default-options-endpoint 2020-05-12 20:11:39 +03:00
Tommi Reiman
9921479c46 Polish code 2020-05-12 19:43:04 +03:00
Caio Oliveira
029894b984
testing assertion 2020-05-12 10:46:53 -04:00
Caio Oliveira
5e3e552c80
add assertion for breaking change 2020-05-12 10:41:34 -04:00
Caio Oliveira
a98fe22992
style 2020-05-12 10:37:47 -04:00
Caio Oliveira
4fa3e12b49
resource -> endpoint 2020-05-12 10:37:13 -04:00
Caio Oliveira
5796df494e
Change default-options-handler to default-options-resource
To make the options resource more customizable.
2020-04-11 20:46:06 -04:00
Tommi Reiman
3ca0492244 0.4.2 2020-01-17 18:39:07 +02:00
Tommi Reiman
945fec23a9 0.4.1 2020-01-14 21:42:47 +02:00
Miikka Koskinen
1ad0141792 Release 0.4.0 2020-01-14 15:49:13 +02:00
Daw-Ran Liou
69795f5fe7 Tighten middleware spec from collection to vector
This avoids messing up the order of middleware chain accidentally.
2019-10-09 18:38:32 +03:00
Tommi Reiman
c23f591283 0.3.10 2019-10-08 10:28:25 +03:00
Alexander Kiel
a19849fe58 Make Map Destructuring of Namespaced Keys more Beautiful
It's possible to put the :keys keyword in the namespace of the keys one likes to
destructure. With that one can use symbols in the vector again. One advantage of
having symbols is, that Cursive grays them out if not used. I found two
occurrences of unused destructured keys.
2019-07-13 17:02:41 +03:00
Tommi Reiman
2e85f44a7e 0.3.9 2019-06-16 20:20:49 +03:00
Tommi Reiman
91e860f6c6 Support 3-arity handler for default-options-handler 2019-06-16 20:11:19 +03:00
Tommi Reiman
dd7a01b1bc 0.3.8 2019-06-15 11:49:45 +03:00
Tommi Reiman
12543b1c30 0.3.7 2019-05-25 16:00:45 +03:00
Tommi Reiman
a314e06887 0.3.6 2019-05-23 14:37:58 +03:00
Daniel Sunnerek
372d7e7509 [#283] Allow to pass some defaults to create-default-handler 2019-05-23 13:18:49 +02:00
Tommi Reiman
568dbad3a3 0.3.5 2019-05-22 21:25:56 +03:00
Tommi Reiman
3381fe34e5 0.3.4 2019-05-20 20:14:14 +03:00
Tommi Reiman
32fced15e8 Release 0.3.3 2019-05-16 07:03:17 +03:00
Tommi Reiman
2e7729349e 0.3.2 2019-05-13 17:06:37 +03:00
Tommi Reiman
a9bdceeeb6 reitit.spec/wrap spec-tools.spec/closed 2019-05-01 22:40:44 +03:00
Tommi Reiman
c3de6ff3dd Fix tests 2019-05-01 22:40:44 +03:00
Tommi Reiman
674b60a124 spell-spec 2019-04-28 17:06:50 +03:00
Tommi Reiman
dc92f6f48e http-swagger++ 2019-04-28 17:06:50 +03:00