Skip to content

Commit f672ce4

Browse files
committed
Add Auth attribute
1 parent 2f3be0b commit f672ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controllers/ProfilesController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public ProfilesController(WaitTimeContext context, IHttpContextAccessor httpCont
3434

3535
[HttpGet]
3636
[Route("{userId}")]
37-
//[Authorize]
37+
[Authorize]
3838
[ProducesResponseType(typeof(ProfileResponseModel), (int)HttpStatusCode.OK)]
3939
[ProducesResponseType(typeof(ErrorResponse), (int)HttpStatusCode.BadRequest)]
4040
[ProducesResponseType(typeof(ErrorResponse), (int)HttpStatusCode.InternalServerError)]
@@ -70,7 +70,7 @@ public async Task<IActionResult> GetProfile(string userId)
7070
[HttpPut]
7171
[ValidateModel]
7272
[Route("")]
73-
//[Authorize]
73+
[Authorize]
7474
[ProducesResponseType(typeof(SuccessResponse), (int)HttpStatusCode.OK)]
7575
[ProducesResponseType(typeof(ErrorResponse), (int)HttpStatusCode.BadRequest)]
7676
[ProducesResponseType(typeof(ErrorResponse), (int)HttpStatusCode.InternalServerError)]

0 commit comments

Comments
 (0)