ArnoldV / Our.Umbraco.GMaps

Basic Google Maps with autocomplete property editor for Umbraco 8 and beyond!
MIT License
13 stars 29 forks source link

Controller registered as a front-end controller and not a backoffice controller #136

Closed devantler closed 1 year ago

devantler commented 1 year ago

Currently, the GoogleMapsController is implemented as a UmbracoApiController. These controllers are meant for front-end controllers and not back-office controllers. This creates an issue if you want to use the package without registering the website to the DI container, as the controller is no longer added automatically.

Would it be possible for you to implement the controller as an UmbracoAuthorizedJsonController? This will ensure the controller is registered when calling

services.AddUmbraco(_env, _config).AddBackOffice()

And not:

services.AddUmbraco(_env, _config).AddWebsite()
robertjf commented 1 year ago

Pre-release for 2.1.4 is going out for this - feel free to test :)