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.

feat(11): Add testDatabaseConnection API method for external DB validation

Juan Denis8d19e3f241ee
diff --git a/frontend/src/services/api.js b/frontend/src/services/api.js
index 169ba66b..9e262e2d 100644
--- a/frontend/src/services/api.js
+++ b/frontend/src/services/api.js
@@ -1470,6 +1470,13 @@ class ApiService {
});
}
+ async testDatabaseConnection(config) {
+ return this.request('/templates/test-db-connection', {
+ method: 'POST',
+ body: config
+ });
+ }
+
async checkAppUpdate(appId) {
return this.request(`/templates/apps/${appId}/check-update`);
}