var distributor = require('./distributor');

addEventListener('fetch', event => {
  event.respondWith(handleRequest(event.request))
})

/**
 * Respond with hello worker text
 * @param {Request} request
 */
async function handleRequest(request) {
  
  return new Response(JSON.stringify(request), {
    headers: { 'content-type': 'text/plain' },
  })
}
