Skip to content

Commit 8d3c17d

Browse files
committed
backport methods var deref
1 parent 0c48047 commit 8d3c17d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compojure/api/resource.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
(ns compojure.api.resource
22
(:require [compojure.api.routes :as routes]
33
[compojure.api.coerce :as coerce]
4+
[compojure.api.methods :as methods]
45
[ring.swagger.common :as rsc]
56
[schema.core :as s]
67
[plumbing.core :as p]
78
[compojure.api.middleware :as mw]))
89

910
(def ^:private +mappings+
10-
{:methods #{:get :head :patch :delete :options :post :put}
11+
{:methods methods/all-methods
1112
:parameters {:query-params [:query-params :query :string true]
1213
:body-params [:body-params :body :body false]
1314
:form-params [:form-params :formData :string true]

0 commit comments

Comments
 (0)