diff --git a/src/wanijo/schema/routes.clj b/src/wanijo/schema/routes.clj index 2aee94b..3b53051 100644 --- a/src/wanijo/schema/routes.clj +++ b/src/wanijo/schema/routes.clj @@ -17,12 +17,6 @@ (resp/redirect "/schema")) (view-schema/overview! req))) -(defn show-schema! [uuid req] - (view-schema/show-schema! - (domain/find-by-uuid! uuid) - (attr-domain/find-by-schema! uuid) - req)) - (defn delete-schema! [uuid session] (if (domain/can-user-modify? uuid (:uuid session)) (do @@ -36,7 +30,10 @@ view-schema/overview!) (GET (register! :schema-show "/schema/:uuid") [uuid :as req] - (show-schema! uuid req)) + (view-schema/show-schema! + (domain/find-by-uuid! uuid) + (attr-domain/find-by-schema! uuid) + req)) (POST (register! :schema-new "/schema/new") [] new!)