Batch API controller for ExpressJS