-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathModuleConfig.cfc
38 lines (33 loc) · 1.1 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
component {
this.name = "sendgrid-sdk";
this.author = "Ortus Solutions";
this.webUrl = "https://github.com/coldbox-modules/sendgrid-sdk";
this.entrypoint = "/sendgrid";
this.dependencies = [ "hyper" ];
function configure() {
routes = [ { pattern: "/webhooks", handler: "webhooks", action: "handle" } ];
interceptorSettings = {
customInterceptionPoints: [
"onSendgridEventProcessed",
"onSendgridEventDropped",
"onSendgridEventDelivered",
"onSendgridEventDeferred",
"onSendgridEventBounce",
"onSendgridEventOpen",
"onSendgridEventClick",
"onSendgridEventSpamreport",
"onSendgridEventUnsubscribe",
"onSendgridEventGroupUnsubscribe",
"onSendgridEventGroupResubscribe"
]
};
}
function onLoad() {
binder.map( "SendGridHyperClient@sendgrid-sdk" )
.to( "hyper.models.HyperBuilder" )
.asSingleton()
.initWith(
baseURL = "https://api.sendgrid.com"
);
}
}