fix missing pren in create.clj
This commit is contained in:
parent
3274d3a90d
commit
b099d9b18d
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
(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