Skip to content

Commit 612e00f

Browse files
UmbracoApiController to Controller
1 parent eeb06b0 commit 612e00f

File tree

1 file changed

+5
-4
lines changed
  • 14/umbraco-cms/reference/cache/examples

1 file changed

+5
-4
lines changed

14/umbraco-cms/reference/cache/examples/tags.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,13 @@ using System.Collections.Generic;
118118
using Microsoft.AspNetCore.Mvc;
119119
using Doccers.Core.Services;
120120
using Umbraco.Cms.Core.Models;
121-
using Umbraco.Cms.Web.Common.Controllers;
122121

123122

124123
namespace Doccers.Core.Controllers.Api;
125124

126-
public class TagsController : UmbracoApiController
125+
[ApiController]
126+
[Route("/umbraco/api/tags")]
127+
public class TagsController : Controller
127128
{
128129
private readonly ICacheTagService _tagService;
129130

@@ -133,7 +134,7 @@ public class TagsController : UmbracoApiController
133134
_tagService = tagService;
134135
}
135136

136-
[HttpGet]
137+
[HttpGet("getdefaulttags")]
137138
public IEnumerable<TagModel> GetDefaultTags()
138139
{
139140
// As mentioned earlier we want tags from "default"
@@ -142,7 +143,7 @@ public class TagsController : UmbracoApiController
142143
TimeSpan.FromMinutes(1));
143144
}
144145

145-
[HttpGet]
146+
[HttpGet("getblogtags")]
146147
public IEnumerable<TagModel> GetBlogTags()
147148
{
148149
// If you don't specify a TimeSpan the object(s)

0 commit comments

Comments
 (0)