| ... |
... |
@@ -10,8 +10,8 @@ |
| 10 |
10 |
|
| 11 |
11 |
self.addEventListener("fetch" , event => { |
| 12 |
12 |
const pathname = new URL(event.request.url).pathname; |
| 13 |
|
- if(pathname === '/getMembershipRequests') { |
| 14 |
|
- event.respondWith(new Response('should return membership requests')); |
|
13 |
+ if(pathname === '/getMembershipRequets') { |
|
14 |
+ return new Response('should return membership requests'); |
| 15 |
15 |
/* |
| 16 |
16 |
event.respondWith(fetch(event.request).then(res => res.json()).then(json => { |
| 17 |
17 |
const headers = new Headers({'Content-Type': 'application/json'}); |