diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-09 14:08:34 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-09 14:08:34 +0200 |
commit | 03641ca2868d5ef21ffe426fa547dd859ce1c474 (patch) | |
tree | 73500c4a178f25f2d34b66c4dccdbcf10ee7ee83 /org-roam-ui.el | |
parent | 2384b30a244c7d6477e54de5385fe7f1cc62d43a (diff) |
fix(preview): changed from api routing to emacs server
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index 2d10abb..e018b09 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -237,13 +237,9 @@ This serves the web-build and API over HTTP." (json-encode `((type . "orgText") (data . ,text)))))) (defservlet* note/:id text/plain () - (if-let ((node (org-roam-populate (org-roam-node-create :id id))) - (file (org-roam-node-file node))) (progn - (insert-file-contents-literally file) - (message "we got one %s" file) - )) -(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*")) + (insert-file-contents-literally (org-link-decode file)) +(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*"))) ;(insert "error") ;(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*") |