cloudflare / worker-template-router

231 stars 85 forks source link

Move Router into a separate file #7

Closed kristianfreeman closed 5 years ago

kristianfreeman commented 5 years ago

For readability purposes, and to not overwhelm the developer when they pull this template down as part of their project, I've moved the Router class into router.js. index.js now imports the class from that file - the rest of index.js hasn't been changed.