From 7885b71dad3a2dea21b64532f6a825ce033bf0a6 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Wed, 16 Nov 2022 19:57:13 -0600 Subject: AƱadidos toques finales MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controllers/WeatherForecastController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Controllers/WeatherForecastController.cs') diff --git a/Controllers/WeatherForecastController.cs b/Controllers/WeatherForecastController.cs index f7fdcdf..1a64e77 100644 --- a/Controllers/WeatherForecastController.cs +++ b/Controllers/WeatherForecastController.cs @@ -5,7 +5,6 @@ using Microsoft.AspNetCore.Authorization; namespace IdentityAPI.Controllers; [ApiController] -[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)] [Route("[controller]")] public class WeatherForecastController : ControllerBase { @@ -22,6 +21,7 @@ public class WeatherForecastController : ControllerBase } [HttpGet(Name = "GetWeatherForecast")] + [Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)] public IEnumerable Get() { return Enumerable.Range(1, 5).Select(index => new WeatherForecast -- cgit v1.2.3