Tommi Reiman
1af3beda6a
Merge pull request #162 from dancek/work-with-multiple-trailing-slashes
...
Support stripping multiple slashes
2018-11-03 14:16:45 +02:00
Tommi Reiman
2c58205e85
Better Exception docs
2018-10-31 19:25:21 +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
d24f86ccfe
Merge pull request #161 from dancek/patch-2
...
Correct testing instructions for contributors
2018-10-31 09:44:11 +02:00
Hannu Hartikainen
b7a5a6785f
Correct testing instructions for contributors
2018-10-31 09:36:45 +02:00
Miikka Koskinen
2d045511bb
Merge pull request #160 from dancek/fix-tests
...
Fix tests (add missing require)
2018-10-31 08:56:51 +02:00
Hannu Hartikainen
52a476c661
Fix tests (add missing require)
2018-10-31 08:48:14 +02:00
Tommi Reiman
399ceca7bb
FIx date-format in CHANGELOG
2018-10-30 20:33:15 +02:00
Tommi Reiman
fdbab455bd
0.2.5
2018-10-30 20:25:14 +02:00
Tommi Reiman
61aa981da7
Update Ring to 1.7.1
2018-10-30 20:24:44 +02:00
Tommi Reiman
3db3ec68f3
Update CHANGELOG
2018-10-30 19:57:13 +02:00
Tommi Reiman
2b0700f887
Update Gitbook docs
2018-10-30 19:53:48 +02:00
Tommi Reiman
2a08ba2c98
Polish code
2018-10-30 19:51:19 +02:00
Tommi Reiman
763440e41f
Format code
2018-10-30 19:50:18 +02:00
Tommi Reiman
3e6f1c0548
Merge pull request #159 from valerauko/trailing-slash
...
Handle trailing slashes
2018-10-30 19:43:32 +02:00
Unknown
1fc4fc7f60
Add docs
2018-10-31 00:10:04 +09:00
Unknown
da29203cc8
Add tests for :strip and :both
2018-10-30 23:48:35 +09:00
Unknown
b6e8a9d579
Add 0-ary version
2018-10-30 23:48:12 +09:00
Unknown
ad8384022c
Add tests for the slash-redirect :add case
2018-10-30 23:23:13 +09:00
Unknown
c8b2aa7bc4
Fix incorrect request key
...
It's :request-method not :method
2018-10-30 23:22:38 +09:00
Unknown
c10764fb4d
Revert "gitignore lein files"
...
This reverts commit ca9de58502 .
2018-10-30 23:10:33 +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
Unknown
46254975d9
Undo ensure-slash
2018-10-29 09:11:52 +09:00
Tommi Reiman
45eab09d7a
Fix tests
2018-10-28 20:19:40 +02:00
Tommi Reiman
0095aece21
Router is injected into request in the default branch
...
* releated to #159
2018-10-28 18:20:35 +02:00
Unknown
33582b4c1c
Strip slash instead
...
Also fix the only failing test
2018-10-28 18:22:41 +09:00
Unknown
2ba01028a0
Remove unnecessary let
2018-10-28 16:28:12 +09:00
Unknown
a8d6b32389
Use ensure-path for matching
2018-10-28 16:21:15 +09:00
Unknown
8d4c591f96
Use ensure-slash at compilation
2018-10-28 16:21:03 +09:00
Unknown
e2e96e8f1e
Add ensure-slash function
2018-10-28 16:20:45 +09:00
Unknown
ca9de58502
gitignore lein files
2018-10-28 16:20:32 +09:00
Tommi Reiman
24d39cde28
Merge pull request #158 from martinklepsch/patch-2
...
Add step to verify cljdoc.edn as part of CI
2018-10-22 21:54:41 +03:00
Martin Klepsch
2c094a46c0
Add step to verify cljdoc.edn as part of CI
2018-10-22 20:46:48 +02:00
Tommi Reiman
35ac8eae43
Fix example README
2018-10-21 23:37:11 +03:00
Tommi Reiman
bfe1151b0a
0.2.4 ready
2018-10-21 23:14:08 +03:00
Tommi Reiman
0beeaef1f8
Update http-swagger example
2018-10-21 23:11:09 +03:00
Tommi Reiman
8fb6582b67
Update jetty-adapter
2018-10-21 23:10:50 +03:00
Tommi Reiman
69aeb9adcc
Release 0.2.4
2018-10-21 20:37:35 +03:00
Tommi Reiman
17c27eb732
Remove generated names from Data-Specs
2018-10-21 20:36:53 +03:00
Tommi Reiman
cb14cf017a
Update to spec-tools 0.8.0-SNAPSHOT
2018-10-21 20:06:28 +03:00
Tommi Reiman
c35c40ceda
Fix docs
2018-10-20 15:06:41 +03:00
Tommi Reiman
ea6682b385
Update CHANGELOG & Docs
2018-10-16 20:32:40 +03:00
Tommi Reiman
5046aebec8
Allow any kind of model
2018-10-16 20:25:43 +03:00
Tommi Reiman
a1aee49105
Merge pull request #157 from valerauko/fix-tests-reflection
...
Fix tests and reflection warnings
2018-10-16 20:17:38 +03:00
Unknown
a00798a0f5
Adjust tests to allow string keys
2018-10-16 22:57:33 +09:00
Unknown
6322bb99f1
Resolve reflection warnings
2018-10-16 22:51:43 +09:00
Tommi Reiman
a77a583c09
Merge pull request #155 from valerauko/resource-404
...
Custom handler for resource 404
2018-10-16 14:58:16 +03:00
Tommi Reiman
1917646bcc
Merge pull request #156 from ludwinas/patch-1
...
fix typo
2018-10-15 12:13:57 +03:00