Skip to content

Commit

Permalink
Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed May 10, 2016
1 parent 50b67c6 commit 90f0a74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## 0.3.0-SNAPSHOT

* *BREAKING*: Removed type-level interceptors from ring-adapter.
* **BREAKING**: Removed type-level interceptors from ring-adapter.
* Support for Context-based urls, thanks to [Wout Neirynck](https://github.com/wneirynck).
* *BREAKING*: top-level swagger options are now in align to the compojure-api:
* **BREAKING**: top-level swagger options are now in align to the compojure-api:
* Fixes [#22](https://github.com/metosin/kekkonen/issues/22)
* By default, `api`s don't bind swagger-spec & swagger-ui, use `:spec` & `:ui` options

Expand Down
4 changes: 3 additions & 1 deletion src/kekkonen/swagger.clj
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
(assoc swagger :basePath context)
swagger))

(defn swagger-handler [swagger options]
(defn swagger-handler
"Creates a handler, that serves the swagger-spec"
[swagger options]
(if-let [spec (:spec options)]
(k/handler
{:type :kekkonen.ring/handler
Expand Down

0 comments on commit 90f0a74

Please sign in to comment.