Skip to content

Commit ef3270f

Browse files
committed
Add auth attribute for docs
1 parent 5b42a01 commit ef3270f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aspnetcore/security/authentication/configure-jwt-bearer-authentication/sample/JwtBearer/Controllers/WeatherForecastController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
using Microsoft.AspNetCore.Authorization;
12
using Microsoft.AspNetCore.Mvc;
23

34
namespace JwtBearer.Controllers;
45

6+
[Authorize]
57
[ApiController]
68
[Route("[controller]")]
79
public class WeatherForecastController : ControllerBase

0 commit comments

Comments
 (0)