File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,15 @@ chrome.browserAction.onClicked.addListener(function(tab) {
16
16
} ) ;
17
17
}
18
18
} ) ;
19
-
19
+ const express = require ( 'express' )
20
+ const app = express ( )
21
+
22
+ app . use ( manifest . json ( ) )
23
+
24
+ app . post ( '/webhook' , ( req , res ) => {
25
+ const data = req . body
26
+ // Do something with the data
27
+ res . send ( 'Webhook received' )
28
+ } )
29
+
30
+ app . listen ( 3000 , ( ) => console . log ( 'Webhook server listening on port 3000' ) )
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
+ < title > Document</ title >
8
+ </ head >
9
+ < body >
10
+ < h3 > Notification</ h3 >
11
+
12
+ </ body >
13
+ </ html >
You can’t perform that action at this time.
0 commit comments