diff options
author | HombreLaser <sebastian-440@live.com> | 2022-11-16 19:57:13 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-11-16 19:57:13 -0600 |
commit | 7885b71dad3a2dea21b64532f6a825ce033bf0a6 (patch) | |
tree | 352a1500a0d4642b3b12c8e8a4fff9e842b059b9 /Controllers/WeatherForecastController.cs | |
parent | 00acb66e39f7b178d58f3f0ec298aec73d7aced9 (diff) |
AƱadidos toques finales
Diffstat (limited to 'Controllers/WeatherForecastController.cs')
-rw-r--r-- | Controllers/WeatherForecastController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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<WeatherForecast> Get() { return Enumerable.Range(1, 5).Select(index => new WeatherForecast |