Started working on output caching api results
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.OutputCaching;
|
||||
using Portfolio.Shared.Models;
|
||||
using Portfolio.Shared.Services;
|
||||
|
||||
namespace Portfolio.Api.Controller;
|
||||
|
||||
[ApiController, Route("api/timeline")]
|
||||
[ApiController, Route("api/timeline"), OutputCache(Tags = [DatabaseContext.CacheKey])]
|
||||
public class TimelineController(ITimelineRepository repository) : ControllerBase {
|
||||
|
||||
[HttpGet("{type}")]
|
||||
|
||||
Reference in New Issue
Block a user