move all json routes into an /api namespace so they don't conflict with any client side routes.