Skip to content

Commit 7d24f96

Browse files
committedApr 27, 2023
Update index.js
1 parent 7324eb1 commit 7d24f96

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed
 

‎index.js

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
/**
22
* Packages
33
*/
4-
const SmeeClient = require('smee-client')
54
const express = require('express')
65
const expressApp = express()
76
const path = require('path')
87
const bodyParser = require('body-parser')
98
const {
109
verifyWebhookData
1110
} = require('./middleware/verifyWebhooks')
12-
13-
const smee = new SmeeClient({
14-
source: 'https://smee.io/2HBeOiSPS2j4ryR',
15-
target: 'http://localhost:3000/events',
16-
logger: console
17-
})
18-
19-
const events = smee.start()
20-
21-
// Stop forwarding events
22-
events.close()
2311
/**
2412
* Controllers
2513
*/
@@ -33,12 +21,14 @@ const {
3321
const {
3422
listForSuite
3523
} = require('./controllers/checks')
24+
3625
/**
3726
* Constants
3827
*/
3928
const {
4029
configFileName,
41-
messages
30+
messages,
31+
events
4232
} = require('./constants.js')
4333
const publicDirectory = path.join(`${__dirname}`, 'public')
4434

0 commit comments

Comments
 (0)
Please sign in to comment.