Update README.md

sample fits into mobile screen
This commit is contained in:
Tommi Reiman 2017-10-31 10:27:51 +02:00 committed by GitHub
parent 095dfb6724
commit 9aefe5dea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ See [Issues](https://github.com/metosin/reitit/issues) for roadmap.
(def router
(r/router
[["/api/ping" ::ping]
["/api/orders/:id" ::order-by-id]]))
    ["/api/orders/:id" ::order]]))
(r/match-by-path router "/api/ping")
; #Match{:template "/api/ping"
@ -34,7 +34,7 @@ See [Issues](https://github.com/metosin/reitit/issues) for roadmap.
; :params {}
; :path "/api/ping"}
(r/match-by-name router ::order-by-id {:id 2})
(r/match-by-name router ::order {:id 2})
; #Match{:template "/api/orders/:id",
; :meta {:name ::order-by-id},
; :result nil,