From 35cd103751115bf28f24eaa9fd52864345139f87 Mon Sep 17 00:00:00 2001 From: venus Date: Thu, 5 Mar 2026 01:53:19 -0600 Subject: [PATCH] set update to post only --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 39da4b4..a181e8a 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") #webhook for vault updated +@app.route("/api/vault-update", methods='POST') #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