Kliknij w kolejności · Kurs NestJS · Moduł 1: Podstawy NestJS

Budowa metody GET kontrolera

Ułóż elementy metody GET kontrolera w prawidłowej kolejności:

Elementy do kliknięcia

  • getAllLegionaries()
  • @Get()
  • {
  • }
  • return this.service.findAll();
Pokaż odpowiedź

Poprawna kolejność:

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