diff options
| author | Asko Nõmm <asko@bien.ee> | 2021-10-03 03:33:44 -0300 |
|---|---|---|
| committer | Asko Nõmm <asko@bien.ee> | 2021-10-03 03:33:44 -0300 |
| commit | bf91cdfd50daffaa4814e2271a2eba82674fba76 (patch) | |
| tree | a643bec3b34b7d9121bba70a9efc8cd551da9cef /README.md | |
| parent | 3003d24e35988981f49db70b446302d7b657df35 (diff) | |
Update README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -41,8 +41,6 @@ Now, obviously on its own the router is not very useful as it needs an actual HT (:require [ruuter.core :as ruuter] [org.httpkit.server :as http])) -; The given request map (second argument) will match the -; first route in this example, and return its response. (def routes [{:path "/" :method :get :response {:status 200 @@ -66,8 +64,6 @@ Now, obviously on its own the router is not very useful as it needs an actual HT (:require [ruuter.core :as ruuter] [ring.adapter.jetty :as jetty])) -; The given request map (second argument) will match the -; first route in this example, and return its response. (def routes [{:path "/" :method :get :response {:status 200 @@ -132,7 +128,7 @@ Or a function returning a map: :body "Hi there!"}) ``` -What the actual map can contain that you return depends again on the HTTP server you decided to use Ruuter with. The examples I've noted here are based on `http-kit`, but feel free to make a PR with additions for other HTTP servers. +What the actual map can contain that you return depends again on the HTTP server you decided to use Ruuter with. The examples I've noted here are based on [http-kit](https://github.com/http-kit/http-kit) & [ring + jetty](https://github.com/ring-clojure/ring), but feel free to make a PR with additions for other HTTP servers. ## Changelog |
