Polish readme

This commit is contained in:
Tommi Reiman 2017-12-28 11:02:39 +02:00
parent 1e2d1be09b
commit 70209aabce

View file

@ -70,8 +70,7 @@ A Ring routing app with input & output coercion using [data-specs](https://githu
(ring/ring-handler
(ring/router
["/api"
["/math" {:name ::math
:get {:coercion reitit.coercion.spec/coercion
["/math" {:get {:coercion reitit.coercion.spec/coercion
:parameters {:query {:x int?, :y int?}}
:responses {200 {:schema {:total pos-int?}}}
:handler (fn [{{{:keys [x y]} :query} :parameters}]
@ -113,18 +112,6 @@ Invalid request:
```
Reverse routing:
```clj
(require '[reitit.core :as r])
(-> app
(ring/get-router)
(r/match-by-name ::math)
:path)
;; "/api/math"
```
## More info
[Check out the full documentation!](https://metosin.github.io/reitit/)