Description
routes/callback.js has been created by tweaking a copy of evaluate-transpiled.js. Once the MR has finished review/refinement, we should factor out the common code.
While at it, let's also check the other endpoint code files for Eliminable duplication.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- No change in behavior of these endpoints; just more maintainable code.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist