Commit graph

157 commits

Author SHA1 Message Date
Tommi Reiman
a0d833e645 0.3.1 2019-03-18 08:27:25 +02:00
Tommi Reiman
d21dd03dfa 0.3.0 2019-03-17 14:22:15 +02:00
Tommi Reiman
a2843dd097 New reitit-dev module for pretty errors 2019-03-03 20:54:21 +02:00
Miikka Koskinen
680414a209 Point each project.clj to the git directory
This way the released JARs should include the git commit they were built
from.
2019-03-01 13:20:43 +02:00
Tommi Reiman
950fef88d2 Use exception/fail! in all creation-time exceptions
... to be companioned with a slick error printer
2019-02-28 12:12:28 +02:00
Tommi Reiman
62f908d988 Second fix to #209 2019-01-26 16:34:16 +02:00
Tommi Reiman
d2d5019d0f 0.2.13 2019-01-26 16:20:19 +02:00
Tommi Reiman
7ec5c79cad Release 0.2.12 2019-01-18 08:56:23 +02:00
Tommi Reiman
f1cbeaa7d2 Fix arity error on benchmarks 2019-01-18 08:52:03 +02:00
Tommi Reiman
d203832667 0.2.11 2019-01-17 19:43:45 +02:00
Tommi Reiman
5079daa8f3 WIP 2019-01-14 10:45:27 +02:00
Tommi Reiman
75c4f78f5d :inject-router? and :inject-match? for ring & http 2019-01-14 10:45:27 +02:00
Tommi Reiman
408b30eaba Release 0.2.10 2018-12-30 17:48:27 +02:00
Tommi Reiman
0e73b883ed 0.2.9 2018-11-21 16:03:09 +02:00
Tommi Reiman
883a65acca Document the router options 2018-11-19 21:04:38 +02:00
Tommi Reiman
dd6b07aa0f Release 0.2.8 2018-11-18 22:31:13 +02:00
Tommi Reiman
a205d14afc Update to 0.2.7 with new spec-tools 2018-11-11 22:03:16 +02:00
Tommi Reiman
69592c0f68 Bump up top 0.2.6 2018-11-09 15:41:13 +02:00
Miikka Koskinen
1a13a24224 In ClojureScript, satisfies? is a macro
Thus `partial` can't be used with it.
2018-11-08 10:00:57 +02:00
Hannu Hartikainen
6a7fb095cb Support stripping multiple slashes
One inspiration for stripping/adding slashes automatically in reitit was
https://github.com/julienschmidt/httprouter which can handle any number
of slashes. Make the implementation a bit better by stripping as many
slashes as there are.

This still doesn't support redirecting from a multiple-slash URI to a
single-slash URI. That could be handled as a special case, but in the
end I think the correct solution would be to convert both the router and
request URIs to a canonical form before matching. Then the question of
slashes is just a question of formatting.
2018-10-31 09:48:13 +02:00
Tommi Reiman
fdbab455bd 0.2.5 2018-10-30 20:25:14 +02:00
Tommi Reiman
2a08ba2c98 Polish code 2018-10-30 19:51:19 +02:00
Unknown
b6e8a9d579 Add 0-ary version 2018-10-30 23:48:12 +09:00
Unknown
c8b2aa7bc4 Fix incorrect request key
It's :request-method not :method
2018-10-30 23:22:38 +09:00
Unknown
6c599f8862 Merge branch 'master' into trailing-slash 2018-10-30 23:10:23 +09:00
Unknown
820e13cffb Use status 301 and 308 2018-10-30 10:16:30 +09:00
Unknown
875934360e Add trailing slash handler 2018-10-29 10:10:22 +09:00
Tommi Reiman
0095aece21 Router is injected into request in the default branch
* releated to #159
2018-10-28 18:20:35 +02:00
Tommi Reiman
69aeb9adcc Release 0.2.4 2018-10-21 20:37:35 +03:00
Vale
21c888b8bc Update docstring 2018-10-10 13:57:59 +09:00
Vale
e84b25d4ac Custom handler for resource 404 2018-10-10 13:57:51 +09:00
Tommi Reiman
f5ee149929 Release 0.2.3 2018-09-24 20:51:43 +03:00
Tommi Reiman
a620ec5999 Set Allow-header on default-options-handler 2018-09-24 20:19:42 +03:00
Tommi Reiman
da1cbf7121 Generate options-endpoints for ring by default 2018-09-23 10:52:17 +03:00
Tommi Reiman
158695d47b Support for top-level middleware in reitit-ring
See #143
2018-09-22 21:42:01 +03:00
Tommi Reiman
d81f20ae79 0.2.2 2018-09-09 22:29:00 +03:00
Juho Teperi
98707902ea Add :scm tags for clojars commit link 2018-09-04 19:21:07 +03:00
Tommi Reiman
fa90d12eb8 0.2.1 with updated deps 2018-09-04 18:15:23 +03:00
Tommi Reiman
ac86d550b5 0.2.0 2018-09-03 19:44:59 +03:00
Tommi Reiman
2c51f051de 0.2.0-alpha1 2018-09-02 17:52:19 +03:00
Tommi Reiman
3e659a2b8b more tests 2018-08-25 13:30:54 +03:00
Tommi Reiman
044c0d6163 http-router 2018-08-25 13:28:44 +03:00
Tommi Reiman
20fa00beaa public 2018-08-25 13:28:44 +03:00
Tommi Reiman
bd844bd816 http.coercion & http.spec
* TODO: need tests
2018-08-25 13:28:44 +03:00
Tommi Reiman
59cbb25688 initial http-handler 2018-08-25 13:28:44 +03:00
Tommi Reiman
bb4f861f00 0.2.0-SNAPSHOT 2018-07-28 12:07:16 +03:00
Juho Teperi
264981fd3d Start version 0.1.4 2018-07-12 12:49:14 +03:00
Tommi Reiman
79d8e1bb91 0.1.3 2018-06-25 17:50:36 +03:00
Tommi Reiman
18bd2e684f bump up version (all but docs) 2018-06-24 22:32:23 +03:00
Tommi Reiman
6b95fab88c 0.1.2 2018-06-06 10:43:59 +03:00
Tommi Reiman
b2c0b2fdfa confirm to ring spec, fixes #83 2018-06-06 10:34:23 +03:00
Tommi Reiman
4a4cd5ae9e response/redirect 2018-06-06 10:34:23 +03:00
Tommi Reiman
21de7a038a 0.1.2-SNAPSHOT 2018-06-06 10:34:23 +03:00
Tommi Reiman
a99789216c Use redirects for index-files 2018-06-06 10:34:23 +03:00
Tommi Reiman
fa078470c5 swagger-ui path work, wip 2018-06-06 10:34:23 +03:00
Tommi Reiman
56203ba11d no default method in ring 2018-06-06 10:34:23 +03:00
Tommi Reiman
fc71947bbb 0.1.1 2018-05-20 21:55:46 +03:00
Tommi Reiman
1262a1fab7 docs 2018-05-20 21:41:38 +03:00
Tommi Reiman
05fbaa1110 Initial swagger-ui integration 2018-05-07 08:59:21 +03:00
Tommi Reiman
0b711b2560 Support :index-files in create-resource-handler 2018-04-29 16:51:53 +03:00
Tommi Reiman
f8a43f0996 use ring for serving resources. 2018-04-25 08:32:01 +03:00
Tommi Reiman
fc0b634865 . 2018-04-24 23:58:15 +03:00
Tommi Reiman
4e49316383 Fix based on Miikka’s comments 2018-04-24 21:17:25 +03:00
Tommi Reiman
8ebcdc8429 swagger & static resource docs 2018-04-23 08:27:16 +03:00
Tommi Reiman
c25da60053 ring/create-resource-handler 2018-04-22 22:51:14 +03:00
Tommi Reiman
acbef8527c ring/routes, fix async default handling 2018-04-22 22:50:17 +03:00
Tommi Reiman
6d387c8822 perf tuning ring-handler 2018-04-22 17:55:32 +03:00
Tommi Reiman
b57d900507 0.1.1-SNAPSHOT 2018-03-17 14:32:51 +02:00
Tommi Reiman
d4a4949ad0 0.1.0 2018-02-19 22:03:30 +02:00
Tommi Reiman
3005e04a6e Inject Match and Router under reitit.core ns in ring 2018-02-12 07:49:24 +02:00
Tommi Reiman
54b24be28e :params => :path-params 2018-02-01 16:23:44 +02:00
Tommi Reiman
fda6a1e06f Support not-found with ring 2018-01-23 20:29:22 +02:00
Dmitri Sotnikov
6625cf31d7
allow custom default-handler to ring-router 2018-01-07 16:36:26 -05:00
Tommi Reiman
fb99b4f9fd Parameter & Response Coercion with specs 2017-12-31 11:34:37 +02:00
Tommi Reiman
708fa24590 rename package 2017-12-31 11:30:55 +02:00
Tommi Reiman
b7b0b7c81d Docs for Ring spec validation 2017-12-29 11:56:01 +02:00
Tommi Reiman
9273f99806 Middleware can also contribute to router specs 2017-12-28 22:41:02 +02:00
Tommi Reiman
1a9583b31b Support ring-route-data validation 2017-12-26 22:41:17 +02:00
Tommi Reiman
0dbb75ad44 Add :path & :method to Endpoints 2017-12-26 22:40:53 +02:00
Tommi Reiman
8a48d6790b . 2017-12-16 10:51:32 +02:00
Tommi Reiman
927d4d4389 Remove middleware/create & polish stuff 2017-12-12 22:27:36 +02:00
Tommi Reiman
b9f032a5ce Cleanup Coercion 2017-12-09 22:49:32 +02:00
Tommi Reiman
22bbe38b8c reitit.ring.middleware => reitit.middleware 2017-12-04 23:58:05 +02:00
Tommi Reiman
164473cc75 :gel-wrap => :compile 2017-12-04 22:44:13 +02:00
Tommi Reiman
ba78008d90 expand the transformed mw 2017-12-04 08:36:06 +02:00
Tommi Reiman
368850b6ab :reitit.ring.middleware/transform! 2017-12-03 21:16:23 +02:00
Tommi Reiman
82e300a9aa More docs 2017-12-03 21:00:34 +02:00
Tommi Reiman
59aa364932 middleware/chain 2017-12-03 17:42:47 +02:00
Tommi Reiman
b210a98f83 polish Coercion protocol
* compile => compile-model
* mae-open => open-model
2017-12-03 17:29:06 +02:00
Tommi Reiman
a436b32729 gen-wrap-* => *-middleware 2017-12-03 17:28:24 +02:00
Tommi Reiman
97598ce194 Fix :body coercion (not open, :body coercer) 2017-11-27 08:01:52 +02:00
Tommi Reiman
becd30386d Works with ClojureScript! 2017-11-27 08:00:27 +02:00
Tommi Reiman
132240b422 ClojureScriptify Exceptions 2017-11-26 22:04:51 +02:00
Tommi Reiman
7979c9de9d Remove normal middleware, slow and noicy 2017-11-26 21:51:55 +02:00
Tommi Reiman
03d4e8c4bf Implement coercion error handling 2017-11-26 21:51:43 +02:00
Tommi Reiman
4d772c62e1 Polish implementations 2017-11-26 21:51:21 +02:00
Tommi Reiman
2dd91d91d6 BREAKING: route :meta => :data 2017-11-18 12:47:16 +02:00
Tommi Reiman
e8ee224160 Fix tests 2017-11-12 16:00:32 +02:00
Tommi Reiman
9434dd08e7 Don't test for nil handler
* it's already verified by the ring-router
2017-11-12 15:43:27 +02:00
Tommi Reiman
63848838d5 respond with nil if async ring route doesn't match
* relates to #45
2017-11-11 22:12:06 +02:00