feat: Refactor blueprints to make them easier to import
All checks were successful
Build Docker / BuildImage (push) Successful in 47s

This commit is contained in:
2025-10-30 18:22:21 +11:00
parent 4c654fcb78
commit 03dae87272
11 changed files with 62 additions and 71 deletions

View File

@@ -3,10 +3,10 @@ import os
from cloudflare import Cloudflare
from tools import json_response
acme_bp = Blueprint('acme', __name__)
app = Blueprint('acme', __name__)
@acme_bp.route("/hnsdoh-acme", methods=["POST"])
@app.route("/hnsdoh-acme", methods=["POST"])
def post():
# Get the TXT record from the request
if not request.is_json or not request.json: