File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
14/umbraco-cms/reference/cache/examples Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,13 @@ using System.Collections.Generic;
118118using Microsoft .AspNetCore .Mvc ;
119119using Doccers .Core .Services ;
120120using Umbraco .Cms .Core .Models ;
121- using Umbraco .Cms .Web .Common .Controllers ;
122121
123122
124123namespace 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)
You can’t perform that action at this time.
0 commit comments