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