Refactor routes to share common code
dcyoung opened this issue · 1 comments
dcyoung commented
Currently routes/scan.js
and routes/component_testing.js
use a fair amount of similar code related to:
- executing script
- shutting down or cleaning up after script errors
- buffering and sending updates on request
Duplicate code for these routes should be extracted and shared between the two.