kdx-perbol
04/18/2024, 7:12 PMIUmbracoHelperAccessor.TryGetUmbracoHelper()
stops working "could not get context" if I slap e.g., [Route("MyRoute")]
on an action method in an UmbracoApiController
.
Is it because the route is no longer /umbraco/api/something
and the context cannot be determined? Is there a workaround?Sebastiaan
04/19/2024, 7:25 AMIPublishedContentQuery
assuming you are trying to get published content from the cache - https://cultiv.nl/blog/using-hangfire-to-update-umbraco-content/John Sharp
04/19/2024, 7:36 AMkdx-perbol
04/22/2024, 7:48 AMUmbracoApiController
) that can use the Umbraco helper accessor fine when running on the default route but not on the custom route. I haven't decorated the controller in a way that the built-in Swagger would pick up. (But maybe I should.)