mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
apply responsecache to the whole controller
This commit is contained in:
parent
7d2700514e
commit
8105e4d89e
1 changed files with 1 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ namespace FilterLists.Api.V1.Controllers
|
|||
{
|
||||
[ApiVersion("1.0")]
|
||||
[Produces("application/json")]
|
||||
[ResponseCache(CacheProfileName = "Long-Lived")]
|
||||
public class ListsController : Controller
|
||||
{
|
||||
private readonly IFilterListService filterListService;
|
||||
|
|
@ -15,7 +16,6 @@ public ListsController(IFilterListService filterListService)
|
|||
}
|
||||
|
||||
[HttpGet]
|
||||
[ResponseCache(CacheProfileName = "Long-Lived")]
|
||||
public IActionResult Get()
|
||||
{
|
||||
return Json(filterListService.GetAllSummaries());
|
||||
|
|
|
|||
Loading…
Reference in a new issue