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ść:
- @Get()
- getAllLegionaries()
- {
- return this.service.findAll();
- }