Skip to content

Instantly share code, notes, and snippets.

addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
/**
* Respond to the request
* @param {Request} request
*/
async function handleRequest(request) {
// 檢查網址後面有沒有東西
<a>https://blog.toolman.xyz</a>