Update routes to generate json response