You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
461 B
Python

import os
from flask import Blueprint, render_template, request, url_for
repo_url = os.environ.get("REPO_URL")
repo_path = os.environ.get("REPO_PATH")
bp = Blueprint("contents", __name__, url_prefix="/contents")
@bp.route("/", methods=("GET", "POST"))
def contents():
if request.method == "POST":
print(request)
if request.form.get("secret") == os.environ.get("REPO_SECRET"):
print("Update the contents")
return "Hello"