Skip to content

Commit 1b24112

Browse files
committed
Taskcontroller
1 parent 160341f commit 1b24112

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nestjs-task-management/src/tasks/tasks.controller.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Controller } from '@nestjs/common';
1+
import { Controller, Get } from '@nestjs/common';
22
import { TasksService } from './tasks.service';
33

44
@Controller()
@@ -8,4 +8,9 @@ export class TasksController {
88

99
}
1010

11+
@Get()
12+
getAllTasks(){
13+
return this.tasksService.getAllTasks()
14+
}
15+
1116
}

0 commit comments

Comments
 (0)