refactor ns-forms

integration-tests
Josha von Gizycki 6 years ago
parent 94a9e10544
commit 70d546749c

@ -5,11 +5,12 @@
[formulare.core :as form] [formulare.core :as form]
[wanijo.framework.routing :refer [register! path]] [wanijo.framework.routing :refer [register! path]]
[wanijo.attribute.domain :as domain] [wanijo.attribute.domain :as domain]
[wanijo.schema.view :as schema-view] [wanijo.schema
[wanijo.schema.domain :as schema-domain] [view :as schema-view]
[wanijo.schema.routes :as schema-routes] [domain :as schema-domain]
[wanijo.schema.forms :as schema-forms] [routes :as schema-routes]
[wanijo.schema.middleware :as schema-middleware])) [forms :as schema-forms]
[middleware :as schema-middleware]]))
(defn new! [req] (defn new! [req]
(let [schema-uuid (get-in req [:params :schema])] (let [schema-uuid (get-in req [:params :schema])]

@ -1,8 +1,7 @@
(ns wanijo.schema.middleware (ns wanijo.schema.middleware
(:require [ring.util.response :as resp] (:require [ring.util.response :as resp]
[wanijo.framework.routing :refer [path]] [wanijo.framework.routing :refer [path]]
[wanijo.schema.domain :as domain] [wanijo.schema.domain :as domain]))
[wanijo.framework.common :refer [in?]]))
(defn wrap-user-schemas [handler] (defn wrap-user-schemas [handler]
(fn [req] (fn [req]

Loading…
Cancel
Save