Fixing API route