Fixed broken API route.