Put in order · NestJS course · Module 1: NestJS Basics

NestJS Controller Declaration

Arrange the elements of the controller declaration in the correct order:

Items to put in order

  • LegionController { }
  • @Controller('legion')
  • export class
Show the answer

Correct order:

  1. @Controller('legion')
  2. export class
  3. LegionController { }