Skip to content

Commit a329dac

Browse files
committed
fix: add quotes to URLs in integration.json endpoint
- Add quotes around target_url and tick_url values - Fix string literal syntax in integration.json response - Ensure proper JSON serialization for URLs
1 parent 5145564 commit a329dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def github_webhook():
102102
# Integration JSON endpoint
103103
@app.route("/integration.json", methods=["GET"])
104104
def get_integration_json():
105-
base_url = os.environ.get('APP_URL', request.url_root.rstrip('/'))
105+
# base_url = os.environ.get('APP_URL', request.url_root.rstrip('/'))
106106
integration_json = {
107107
"data": {
108108
"date": {
@@ -134,7 +134,7 @@ def get_integration_json():
134134
"default": "True"
135135
}
136136
],
137-
"target_url": f"{base_url}/github-webhook",
137+
"target_url": https://github-commit-monitor-4a53c549b932.herokuapp.com/github-webhook",
138138
"tick_url": "https://github-commit-monitor-4a53c549b932.herokuapp.com"
139139
}
140140
}

0 commit comments

Comments
 (0)