Created
January 27, 2019 19:47
-
-
Save MrPeker/619bfa1c95115c6210e70cc2ce33d178 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const match = ({url, event}) => { | |
return { | |
name: 'Workbox', | |
type: 'guide', | |
}; | |
}; | |
const handler = ({url, event, params}) => { | |
// Yanıt “A guide on Workbox” olacaktır | |
return new Response( | |
`A ${params.type} on ${params.name}` | |
); | |
}; | |
workbox.routing.registerRoute(match, handler); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment