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'
55import { themes } from './themes'
66import { workspaces } from './workspaces'
77import { responses } from './responses'
8+ import { webhooks } from './webhooks'
89
910export const createClient = ( args = { } ) => {
1011 if ( args . token === undefined ) {
@@ -19,7 +20,8 @@ export const createClient = (args = {}) => {
1920 teams : teams ( http ) ,
2021 themes : themes ( http ) ,
2122 workspaces : workspaces ( http ) ,
22- responses : responses ( http )
23+ responses : responses ( http ) ,
24+ webhooks : webhooks ( http )
2325 }
2426}
2527
Original file line number Diff line number Diff line change 11export 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 )
36} )
47
58export const getWebhook = ( http , { uid, tag } ) => {
You can’t perform that action at this time.
0 commit comments