File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
14/umbraco-cms/reference/querying Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ using System.Collections.Generic;
2727using System .Linq ;
2828using Microsoft .AspNetCore .Mvc ;
2929using Umbraco .Cms .Core .PublishedCache ;
30- using Umbraco .Cms .Web .Common .Controllers ;
3130
3231namespace UmbracoHelperDocs .Controllers ;
3332
34- [Route (" tags/[action]" )]
35- public class TagApiController : UmbracoApiController
33+ [ApiController ]
34+ [Route (" /umbraco/api/tags" )]
35+ public class TagApiController : Controller
3636{
3737 private readonly ITagQuery _tagQuery ;
3838
@@ -41,6 +41,7 @@ public class TagApiController : UmbracoApiController
4141 _tagQuery = tagQuery ;
4242 }
4343
44+ [HttpGet (" getmediatags" )]
4445 public ActionResult <IEnumerable <string >> GetMediaTags ()
4546 {
4647 return _tagQuery .GetAllMediaTags ().Select (tag => tag .Text ).ToList ();
You can’t perform that action at this time.
0 commit comments