mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
Merge pull request #121 from KingMob/feature/encode-routes
URL-encode supplied routes?
This commit is contained in:
commit
5cc3486506
1 changed files with 5 additions and 0 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue