Skip to content

Commit fa5fb01

Browse files
committed
add back routes/create
1 parent cc937b4 commit fa5fb01

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ See also: [compojure-api 1.1.x changelog](./CHANGELOG-1.1.x.md)
33
## Unreleased
44

55
* Fix empty spec response coercion. [#413](https://github.com/metosin/compojure-api/issues/413)
6+
* Add back `defapi` (and deprecate it)
67
* Remove potemkin [#445](https://github.com/metosin/compojure-api/issues/445)
8+
* Add back `compojure.api.routes/create`
79

810
## 2.0.0-alpha31 (2019-12-20)
911

src/compojure/api/routes.clj

+3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
(applyTo [this args]
9494
(AFn/applyToHelper this args)))
9595

96+
(defn create [path method info childs handler]
97+
(->Route path method info childs handler))
98+
9699
(defmethod print-method Route
97100
[this ^Writer w]
98101
(let [childs (some-> this realize-childs filter-childs :childs seq vec)]

0 commit comments

Comments
 (0)