router.addHandler from a separate function
Now I'm not particularly good in JS, so hoping that some JS gurus can chime in here, but is there any way that the callback
async ({ request, page, enqueueLinks, log }) => { ... } could be put inside a separate function and instead pass the function to addHandler?So something like this:
