init: Application.cfc + db.cfc CRUD API + index.cfm
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user