Update WeatherForecast controller (#28506)

pull/28495/head
Luke Latham 2023-02-27 06:23:37 -06:00 committed by GitHub
parent 7f79fea71d
commit 2063ecf747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -219,6 +219,7 @@ The WeatherForecast controller (`Controllers/WeatherForecastController.cs`) expo
[Authorize]
[ApiController]
[Route("[controller]")]
[RequiredScope(RequiredScopesConfigurationKey = "AzureAd:Scopes")]
public class WeatherForecastController : ControllerBase
{
[HttpGet]
@ -627,6 +628,7 @@ The WeatherForecast controller (`Controllers/WeatherForecastController.cs`) expo
[Authorize]
[ApiController]
[Route("[controller]")]
[RequiredScope(RequiredScopesConfigurationKey = "AzureAd:Scopes")]
public class WeatherForecastController : ControllerBase
{
[HttpGet]