fix create command
This commit is contained in:
parent
b099d9b18d
commit
fff03fa0d5
1 changed files with 3 additions and 3 deletions
|
|
@ -8,9 +8,9 @@
|
||||||
[babashka.process :refer [shell]]))
|
[babashka.process :refer [shell]]))
|
||||||
|
|
||||||
(defn create-snippet [{:keys [title slug markdown tags]}]
|
(defn create-snippet [{:keys [title slug markdown tags]}]
|
||||||
(http/post (str (:backend-host config) "/api/snippet"))
|
(http/post (str (:backend-host config) "/api/snippet")
|
||||||
{:headers {:content-type "application/json"}
|
{:headers {:content-type "application/json"}
|
||||||
:body (json/encode {:title title :slug slug :markdown markdown :tags tags})})
|
:body (json/encode {:title title :slug slug :markdown markdown :tags tags})}))
|
||||||
|
|
||||||
(defn run []
|
(defn run []
|
||||||
(let [title (utils/prompt-for "title")
|
(let [title (utils/prompt-for "title")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue