-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
34 lines (26 loc) · 897 Bytes
/
index.js
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
const post = require('./triggers/post');
const reply = require('./triggers/reply');
const like = require('./triggers/like');
// Now we can roll up all our behaviors in an App.
const App = {
// This is just shorthand to reference the installed dependencies you have. Zapier will
// need to know these before we can upload
version: require('./package.json').version,
platformVersion: require('zapier-platform-core').version,
beforeRequest: [],
afterResponse: [],
resources: {},
hydrators: {},
// If you want your trigger to show up, you better include it here!
triggers: {
[post.key]: post,
[reply.key]: reply,
[like.key]: like,
},
// If you want your searches to show up, you better include it here!
searches: {},
// If you want your creates to show up, you better include it here!
creates: {},
};
// Finally, export the app.
module.exports = App;