diff --git a/solution/app/sw.js b/solution/app/sw.js index 6a5f215..38df9af 100644 --- a/solution/app/sw.js +++ b/solution/app/sw.js @@ -40,7 +40,7 @@ if (workbox) { }); workbox.routing.registerRoute( - /\/api\/add/, + ({url}) => url.pathname === "/api/add", networkWithBackgroundSync, 'POST' );