Click in order · NestJS course · Module 1: NestJS Basics
Building a Controller GET Method
Arrange the elements of the controller GET method in the correct order:
Items to click
- getAllLegionaries()
- @Get()
- {
- }
- return this.service.findAll();
Show the answer
Correct order:
- @Get()
- getAllLegionaries()
- {
- return this.service.findAll();
- }