diff --git a/src/main/cljs/dda/c4k_common/yaml.cljs b/src/main/cljs/dda/c4k_common/yaml.cljs index 11a39e8..057ec62 100644 --- a/src/main/cljs/dda/c4k_common/yaml.cljs +++ b/src/main/cljs/dda/c4k_common/yaml.cljs @@ -28,7 +28,10 @@ (defmulti load-as-edn dispatch-by-resource-name) -(defmethod load-as-edn :cljs [resource-name] - (yaml/from-string (yaml/load-resource resource-name))) +(defmethod load-as-edn :cljs [allowed-resource resource-name] + (from-string (load-resource (allowed-resource) resource-name))) -(defmulti allowed-resources dispatch-by-resource-name) \ No newline at end of file +(defmulti allowed-resources dispatch-by-resource-name) + +(defmethod allowed-resources :cljs [] + []) \ No newline at end of file