[WIP] Check for allowed resources

This commit is contained in:
erik 2022-11-08 13:06:26 +01:00
parent d1f4fb942d
commit 65dd1d1ca2

View file

@ -28,7 +28,10 @@
(defmulti load-as-edn dispatch-by-resource-name) (defmulti load-as-edn dispatch-by-resource-name)
(defmethod load-as-edn :cljs [resource-name] (defmethod load-as-edn :cljs [allowed-resource resource-name]
(yaml/from-string (yaml/load-resource resource-name))) (from-string (load-resource (allowed-resource) resource-name)))
(defmulti allowed-resources dispatch-by-resource-name) (defmulti allowed-resources dispatch-by-resource-name)
(defmethod allowed-resources :cljs []
[])