We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f479d6 commit 20ac7efCopy full SHA for 20ac7ef
1 file changed
Controllers/TaskManagerController.cs
@@ -10,6 +10,7 @@
10
namespace Todo.Controllers
11
{
12
[ApiController]
13
+
14
public class TaskManagerController : ControllerBase
15
16
private readonly TaskManagerServices _taskManagerServices;
@@ -19,6 +20,7 @@ public TaskManagerController(TaskManagerServices taskManagerServices)
19
20
_taskManagerServices = taskManagerServices;
21
}
22
23
+ [Authorize]
24
[HttpGet("/TasksToDo")]
25
public IActionResult Get()
26
@@ -59,6 +61,7 @@ public IActionResult ListAllTasks()
59
61
60
62
63
64
65
[HttpGet("ListTaskByUser/{userId}")]
66
public IActionResult ListTarefaByUser(
67
[FromRoute] int userId)
0 commit comments