Fix reference -- from r to router

This commit is contained in:
Jacek Schæ 2020-05-09 18:11:50 +02:00 committed by GitHub
parent e5c4ae533f
commit 3766a5929e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ By default, all wildcard and catch-all parameters are parsed into strings:
Match with the parsed `:path-params` as strings:
```clj
(r/match-by-path r "/metosin/users/123")
(r/match-by-path router "/metosin/users/123")
; #Match{:template "/:company/users/:user-id",
; :data {:name :user/user-view},
; :result nil,
@ -63,7 +63,7 @@ Example with Schema path-parameters:
A Match:
```clj
(r/match-by-path r "/metosin/users/123")
(r/match-by-path router "/metosin/users/123")
; #Match{:template "/:company/users/:user-id",
; :data {:name :user/user-view,
; :coercion <<:schema>>
@ -103,7 +103,7 @@ There is a helper function `reitit.coercion/compile-request-coercers` just for t
Routing again:
```clj
(r/match-by-path r "/metosin/users/123")
(r/match-by-path router "/metosin/users/123")
; #Match{:template "/:company/users/:user-id",
; :data {:name :user/user-view,
; :coercion <<:schema>>