From 8f4880d7ad2c793c451dc80dc9a35adb37bb0f3c Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 29 Oct 2022 14:48:02 -0500 Subject: AƱadidos filters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controllers/BooksController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Controllers/BooksController.cs') diff --git a/Controllers/BooksController.cs b/Controllers/BooksController.cs index d238da7..9b744f8 100644 --- a/Controllers/BooksController.cs +++ b/Controllers/BooksController.cs @@ -1,8 +1,10 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using LibraryAPI.Models; +using LibraryAPI.Filters; namespace LibraryAPI.Controllers { + [ServiceFilter(typeof(ActionFilter))] [Route("api/books")] [ApiController] public class BooksController : ControllerBase { @@ -89,4 +91,4 @@ namespace LibraryAPI.Controllers { return Ok(); } } -} \ No newline at end of file +} -- cgit v1.2.3