File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { teams } from './teams'
5
5
import { themes } from './themes'
6
6
import { workspaces } from './workspaces'
7
7
import { responses } from './responses'
8
+ import { webhooks } from './webhooks'
8
9
9
10
export const createClient = ( args = { } ) => {
10
11
if ( args . token === undefined ) {
@@ -19,7 +20,8 @@ export const createClient = (args = {}) => {
19
20
teams : teams ( http ) ,
20
21
themes : themes ( http ) ,
21
22
workspaces : workspaces ( http ) ,
22
- responses : responses ( http )
23
+ responses : responses ( http ) ,
24
+ webhooks : webhooks ( http )
23
25
}
24
26
}
25
27
Original file line number Diff line number Diff line change 1
1
export const webhooks = http => ( {
2
- list : args => getResponses ( http , args )
2
+ list : args => getWebhook ( http , args ) ,
3
+ create : args => createWebhook ( http , args ) ,
4
+ update : args => updateWebhook ( http , args ) ,
5
+ delete : args => deleteWebhook ( http , args )
3
6
} )
4
7
5
8
export const getWebhook = ( http , { uid, tag } ) => {
You can’t perform that action at this time.
0 commit comments