Skip to content

Commit ff349af

Browse files
set authorization to AttachmentController
1 parent c238042 commit ff349af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

taskmaster-api/Controllers/AttachmentController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using Microsoft.AspNetCore.Authorization;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using taskmaster_api.Data.DTOs;
45
using taskmaster_api.Services.Interface;
@@ -7,6 +8,7 @@ namespace taskmaster_api.Controllers
78
{
89
[Route("api/[controller]")]
910
[ApiController]
11+
[Authorize]
1012
public class AttachmentController : ApplicationControllerBase
1113
{
1214
private readonly IAttachmentService _attachmentService;

0 commit comments

Comments
 (0)