Commit graph

333 commits

Author SHA1 Message Date
Tommi Reiman
f3dee769fb format-ns 2022-02-14 16:59:20 +02:00
Tommi Reiman
2aba5610c7 format 2022-02-14 16:58:10 +02:00
Tommi Reiman
d0f7126491 add support for malli-lite 2022-02-14 16:45:14 +02:00
Tommi Reiman
bdcb1eb5b1 clean-ns 2022-02-12 22:35:27 +02:00
Tommi Reiman
5d4c886d35 format 2022-02-12 22:34:26 +02:00
Miikka Koskinen
9160aa0f2b Add a test for /{foo}.html style routes
Just like path `///` would not match `/{foo}/`, `/..html` does not match
`/{foo}.html`.
2021-10-06 20:42:09 +03:00
Tommi Reiman
38f2bd4812
Merge branch 'master' into fix-resource-handler-url-decoding 2021-08-03 13:33:39 +03:00
Tommi Reiman
5486174722
Merge pull request #501 from metosin/malli-fix
Fix malli encoding & update deps
2021-08-03 13:29:53 +03:00
Tommi Reiman
020c424b4e dead code, CHANGELOG 2021-08-03 13:24:29 +03:00
Tommi Reiman
20b7cabed7 Fix Malli encoding,, #498 2021-08-03 08:46:51 +03:00
Dieter Komendera
056c70d269 Enrich request for pedestal/routing-interceptor default-queue
This ensures requests handled by the default queue also have
access to the router per the injected :reitit.core/router key
on the request.
2021-06-24 14:07:23 +02:00
Miikka Koskinen
1297cfd902 Handle URL-encoded paths in file and resource handlers 2021-04-30 14:38:18 +03:00
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
Miikka Koskinen
88897a2264 Remove useless testing calls 2021-02-26 07:41:03 +02:00
Kari Marttila
902b33f004 Support not-found-handler with path in resource handler (#464) 2021-02-19 15:17:26 +02:00
Kimmo Koskinen
496e6b6fc7 Allow space as separator, fixes #411
Fixes https://github.com/metosin/reitit/issues/411
2021-01-29 15:02:35 +02:00
Tommi Reiman
f2f7d3a428
Merge pull request #438 from metosin/frontend-fixes
Frontend fixes
2020-10-19 10:42:45 +03:00
Tommi Reiman
9ce7e6593c malli 0.2.0, update docs & tune 2020-10-18 20:22:01 +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
Juho Teperi
845240d330
Merge branch 'master' into frontend-fixes 2020-10-15 09:49:14 +03:00
Tommi Reiman
39ec264da8
Merge pull request #417 from Koura/issue-217-consume-form-params
Issue 217 consume form params
2020-09-30 12:25:52 +03:00
Juho Teperi
58f9871747 Test rfe start! 2020-09-26 16:51:19 +03:00
Tommi Reiman
fbff819909 update deps 2020-09-26 12:11:14 +03:00
tjalkane
ce635609c7 Omit swagger-data for muuntaja middleware/interceptor
Leave out swagger-data when `:form`, but no `:body` parameters, are
defined. If swagger-data is not omitted, order of parameters and
muuntaja middleware will matter.
2020-07-10 09:52:20 +03:00
tjalkane
6703a02baa Publish Swagger :consumes for parameters-interceptor
Make parameters-interceptor automatically publish swagger data for
endpoints when :form, but not :body params, are present.
2020-07-08 10:18:57 +03:00
tjalkane
15df0c5005 Automatically publish Swagger :consumes for :form params
Make parameters-middleware publish swagger data for endpoints when
:form, but not :body params,
are present.
2020-07-08 10:07:43 +03:00
tjalkane
c1c3cd26b4 Remove duplicate require of schema.core 2020-06-26 00:25:09 +03:00
tjalkane
87d7e2e3c9 Fix: rename a test to make it run
The renamed test is redeclared later in the same namespace
causing the original one to not be run with `lein test`.
2020-06-26 00:16:06 +03:00
Tommi Reiman
681c994f7f Test that middleware swagger injections work 2020-05-26 22:35:43 +03:00
Tommi Reiman
f2e0470ecd
Merge pull request #408 from metosin/PR
Better malli-coercion
2020-05-26 22:03:45 +03:00
Tommi Reiman
57da6fa5ad optimized http-coercion 2020-05-26 21:32:26 +03:00
Tommi Reiman
e649ed22b9 New options for malli coercion 2020-05-26 08:09:35 +03:00
Tommi Reiman
f41006c8bb just validation 2020-05-25 23:50:27 +03:00
Tommi Reiman
a2d8208600 Fix #407 2020-05-25 21:54:27 +03:00
piotr-yuxuan
3e8eaa48d7
Fix default description
https://github.com/metosin/reitit/issues/403
2020-05-19 23:42:56 +01:00
Tommi Reiman
920c9d7cfd nil-punning on routes 2020-05-17 10:34:44 +03:00
Tommi Reiman
b1c8dbdaa4 Update sieppari, fix tests 2020-05-16 17:34:55 +03:00
Tommi Reiman
ddf56624b7 Update swagger test 2020-05-16 14:08:08 +03:00
Tommi Reiman
26dcbef5d1 Add tests for missing sieppari asyncs 2020-05-16 14:06:45 +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
Caio Oliveira
029894b984
testing assertion 2020-05-12 10:46:53 -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
c5dc91af89 Update tests & CHANGELOG 2020-04-06 10:57:12 +03:00
Juho Teperi
03009f5ca4 Ensure rfe/history is set during initial on-navigate call
Fixes #315
2020-03-05 15:32:16 +02:00
Juho Teperi
c4e84c2875 Add clj-kondo and fix most linting warnings 2020-03-05 13:32:48 +02:00