if ($salesChannel === null
) { throw SeoException::
salesChannelNotFound($salesChannelId);
} if ($salesChannel->
getTypeId() === Defaults::SALES_CHANNEL_TYPE_API
) { if (Feature::
isActive('v6.6.0.0'
)) { return new Response('', Response::HTTP_NO_CONTENT
);
} } $this->seoUrlPersister->
updateSeoUrls( $context,
$seoUrlData['routeName'
],
[$seoUrlData['foreignKey'
]],
[$seoUrlData],
$salesChannel );
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/seo-url/create-custom-url', name: 'api.seo-url.create', methods: ['POST'])]