24 lines
691 B
Plaintext
24 lines
691 B
Plaintext
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;
|
|
}
|
|
}
|