Coding task · NestJS course · Module 1: NestJS Basics
Service with Business Logic
Create a service with the @Injectable() decorator that contains the legion's business logic.
Task
Write a LegionService with the @Injectable() decorator and a findAll() method that returns an array of legionaries (at least one), e.g. [{ id: 1, name: 'Marcus Aurelius' }].