Flip order of JS API and Express router