diff --git a/templates/front/snippets/create_check_request.html b/templates/front/snippets/create_check_request.html index ce58ecf2..4254cff7 100644 --- a/templates/front/snippets/create_check_request.html +++ b/templates/front/snippets/create_check_request.html @@ -1,4 +1,4 @@ -
curl http://localhost:8000/api/v1/checks/ \
+
curl {{ SITE_ROOT }}/api/v1/checks/ \
     -X POST \
     -d '{"api_key": "your-api-key", "name": "Backups", "tags": "prod www", "timeout": 3600, "grace": 60}'
 
diff --git a/templates/front/snippets/create_check_request.txt b/templates/front/snippets/create_check_request.txt index 92c077d0..8f760ed2 100644 --- a/templates/front/snippets/create_check_request.txt +++ b/templates/front/snippets/create_check_request.txt @@ -1,3 +1,3 @@ -curl http://localhost:8000/api/v1/checks/ \ +curl SITE_ROOT/api/v1/checks/ \ -X POST \ -d '{"api_key": "your-api-key", "name": "Backups", "tags": "prod www", "timeout": 3600, "grace": 60}' \ No newline at end of file