enhance(plugin): support custom routes from the plugin sdk

This commit is contained in:
charlie
2024-03-21 19:07:16 +08:00
parent bd26d0db0e
commit 53125d6315
11 changed files with 124 additions and 50 deletions

View File

@@ -69,7 +69,12 @@
#?(:cljs (def string-join-path common-util/string-join-path))
#?(:cljs
(def safe-re-find common-util/safe-re-find))
(do
(def safe-re-find common-util/safe-re-find)
(defn safe-keyword
[s]
(when (string? s)
(keyword (string/replace s " " "_"))))))
#?(:cljs
(do