Skip to content

Commit 955a861

Browse files
Change UmbracoApiController to Controller
1 parent bfd0897 commit 955a861

File tree

1 file changed

+4
-3
lines changed
  • 14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors

1 file changed

+4
-3
lines changed

14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/image-cropper.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ using Umbraco.Cms.Core.PropertyEditors;
127127
using Umbraco.Cms.Core.PropertyEditors.ValueConverters;
128128
using Umbraco.Cms.Core.Serialization;
129129
using Umbraco.Cms.Core.Services;
130-
using Umbraco.Cms.Web.Common.Controllers;
131130

132131
namespace Umbraco.Docs.Samples.Web.Property_Editors_Add_Values;
133132

134-
public class CreateImageCropperValuesController : UmbracoApiController
133+
[ApiController]
134+
[Route("/umbraco/api/createimagecroppervalues")]
135+
public class CreateImageCropperValuesController : Controller
135136
{
136137
private readonly IContentService _contentService;
137138
private readonly IMediaService _mediaService;
@@ -150,7 +151,7 @@ public class CreateImageCropperValuesController : UmbracoApiController
150151
}
151152

152153
// /Umbraco/Api/CreateImageCropperValues/CreateImageCropperValues
153-
[HttpPost]
154+
[HttpPost("createimagecroppervalues")]
154155
public ActionResult<bool> CreateImageCropperValues()
155156
{
156157
// Create a variable for the GUID of the page you want to update

0 commit comments

Comments
 (0)