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:

  1. @Get()
  2. getAllLegionaries()
  3. {
  4. return this.service.findAll();
  5. }