basic webhook

This commit is contained in:
venus
2026-03-05 01:21:13 -06:00
parent cf6fc0da33
commit ebb6aa0f56

View File

@@ -19,8 +19,13 @@ def index():
html_content = markdown.markdown(md_content) html_content = markdown.markdown(md_content)
return html_content return html_content
@app.route("/api/vault-update") #webhook for vault updated @app.route("/api/vault-update") #webhook for vault updated
def update_vault():
# TODO SECURE THIS WITH SECRETTTTT or auth header # TODO SECURE THIS WITH SECRETTTTT or auth header
def buildStatus = build.html_file(filename, PUBLIC_VAULT_DIR)
return "vault-rebuilt"
@app.route ("/<filename>") # renders a filename if not otherwise specified @app.route ("/<filename>") # renders a filename if not otherwise specified
def render_post(filename): def render_post(filename):