Merge pull request #121 from KingMob/feature/encode-routes

URL-encode supplied routes?
This commit is contained in:
Tommi Reiman 2018-09-06 08:35:13 +03:00 committed by GitHub
commit 5cc3486506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,3 +84,8 @@ Routes are just data, so it's easy to create them programmatically:
; ["/add-user" {:post {:interceptors [add-user]}}]
; ["/add-order" {:post {:interceptors [add-order]}}])]
```
### Encoding
Reitit does not apply any encoding to your paths. If you need that, you must encode them yourself.
E.g., `/foo bar` should be `/foo%20bar`.