-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
tracend edited this page Oct 8, 2012
·
4 revisions
This is the default configuration located at /config/default.js
config = {
"name" : "CRUDr",
"static" : {
"client.js": "/crudr/client.js"
},
"backends" : {
...
}
}
Any of these options can be overridden when calling the "listen" method
crudr.listen(app, options);
Apart from the "static" configuration, "options" also requires an object containing all the db/models that the app will be using in the "backends" array.
For example:
options.db = {
"backend_name" : {DB}
}
If only one db is required for the whole "backends" list then options.db can be collapsed to
options.db = {DB}