Change to routes for json endpoints for testing