set update to post again
This commit is contained in:
@@ -18,7 +18,7 @@ def index():
|
|||||||
md_content = "# Welcome to my blog!\nThis is rendered from **Markdown**.\n##[test](http://localhost/test)"
|
md_content = "# Welcome to my blog!\nThis is rendered from **Markdown**.\n##[test](http://localhost/test)"
|
||||||
html_content = markdown.markdown(md_content)
|
html_content = markdown.markdown(md_content)
|
||||||
return html_content
|
return html_content
|
||||||
@app.route("/api/vault-update", methods='POST') #webhook for vault updated
|
@app.route("/api/vault-update", methods=['POST']) #webhook for vault updated
|
||||||
def update_vault():
|
def update_vault():
|
||||||
# TODO SECURE THIS WITH SECRETTTTT or auth header
|
# TODO SECURE THIS WITH SECRETTTTT or auth header
|
||||||
build.obsidian_vault(PRIVATE_VAULT_DIR) # initialize the private obsidian repo
|
build.obsidian_vault(PRIVATE_VAULT_DIR) # initialize the private obsidian repo
|
||||||
|
|||||||
Reference in New Issue
Block a user