init: Application.cfc + db.cfc CRUD API + index.cfm

This commit is contained in:
2026-06-18 12:17:04 +04:00
commit cb2d96ee66
3 changed files with 189 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
component {
this.name = "contractor";
this.datasources["baza"] = {
class: "org.postgresql.Driver",
connectionString: "jdbc:postgresql://postgresqlk8s-master.418f9960-2eb7-4429-b2ec-ac64319d7268.svc.cluster.local:5432/baza",
username: "super",
password: "hoHdkA23yxlD9oMUlZ1bIbNyc6DE2mNJmyHMNkEpVD1F4suQs7O2lyN4t0qITyzt"
};
this.defaultDatasource = "baza";
// REST
this.restEnabled = true;
this.restSettings = {
skipCFCWithError: true
};
public boolean function onRequestStart(string targetPage) {
if (structKeyExists(url, "reload")) {
applicationStop();
}
return true;
}
}