Skip to content

Commit 82b5451

Browse files
Update Controller
1 parent b4247c2 commit 82b5451

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

14/umbraco-cms/reference/querying/itagquery.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ using System.Collections.Generic;
2727
using System.Linq;
2828
using Microsoft.AspNetCore.Mvc;
2929
using Umbraco.Cms.Core.PublishedCache;
30-
using Umbraco.Cms.Web.Common.Controllers;
3130

3231
namespace 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();

0 commit comments

Comments
 (0)