diff --git a/app/__init__.py b/app/__init__.py index e207baf..bea6578 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -18,7 +18,7 @@ def index(): md_content = "# Welcome to my blog!\nThis is rendered from **Markdown**.\n##[test](http://localhost/test)" html_content = markdown.markdown(md_content) return html_content -@app.route("/api/vault-update", methods=['POST']) #webhook for vault updated +@app.route("/api/vault-update", methods=['POST', 'GET']) #webhook for vault updated def update_vault(): # TODO SECURE THIS WITH SECRETTTTT or auth header build.obsidian_vault(PRIVATE_VAULT_DIR) # initialize the private obsidian repo diff --git a/content/Public test 2.md b/content/Public test 2.md index eb301d7..047744d 100644 --- a/content/Public test 2.md +++ b/content/Public test 2.md @@ -1,2 +1,2 @@ -if this is there, the site live updates from wh +if this is there, the site live updates from wh #public \ No newline at end of file