[WIP] Check for allowed resources
This commit is contained in:
parent
d1f4fb942d
commit
65dd1d1ca2
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
(defmulti allowed-resources dispatch-by-resource-name)
|
||||
|
||||
(defmethod allowed-resources :cljs []
|
||||
[])
|
Loading…
Reference in a new issue