Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix: refresh preview API and controller boundary inventories

Juan Denise30fe7c08143
diff --git a/backend/tests/api_controller_boundary_baseline.json b/backend/tests/api_controller_boundary_baseline.json
index 1cc97396..f0c23814 100644
--- a/backend/tests/api_controller_boundary_baseline.json
+++ b/backend/tests/api_controller_boundary_baseline.json
@@ -3,7 +3,7 @@
"policy": "Exact reviewed inventory of direct persistence, subprocess, and filesystem mutation calls in Flask API controllers. New calls are forbidden; remove entries as controllers delegate to services.",
"counts": {
"filesystem": 8,
- "persistence": 469
+ "persistence": 468
},
"owners": {
"api/admin.py": {
@@ -655,7 +655,6 @@
"api/two_factor.py::verify_2fa_code::persistence::db.session.commit()::1",
"api/two_factor.py::verify_2fa_code::persistence::db.session.commit()::2",
"api/two_factor.py::verify_2fa_code::persistence::db.session.commit()::3",
- "api/webhooks.py::receive_pull_request::persistence::ApplicationPreview.query.filter_by(application_id=webhook.app_id, pr_number=pr.get('pr_number')).first()::1",
"api/webhooks.py::receive_pull_request::persistence::GitWebhook.query.filter_by(webhook_token=token).first()::1"
]
}
diff --git a/docs/API_SURFACE.md b/docs/API_SURFACE.md
index 8de818bc..59f85051 100644
--- a/docs/API_SURFACE.md
+++ b/docs/API_SURFACE.md
@@ -787,6 +787,7 @@ Regenerate (backend/):
- `POST /apps/{app_id}/image-update/apply`
- `POST /apps/{app_id}/link`
- `POST /apps/{app_id}/micro-cache/purge`
+- `POST /apps/{app_id}/previews`
- `POST /apps/{app_id}/previews/sync`
- `POST /apps/{app_id}/previews/{preview_id}/redeploy`
- `POST /apps/{app_id}/private-url`