title: NestJS GET function in service & controller return 404 error
body: <p>I'm trying to create simple GET logic, but when try it in Postman receive 404 error.</p>
  
  <p><strong>books.service.ts</strong> - there is the simple logic:</p>
  
  <pre><code>constructor(
          @InjectRepository(Books) private readonly booksRepo: Repository&lt;Books&gt;,
      ) { }
  
      async getBooks(): Promise&lt;Books[]&gt; {
          const allBooks = await this.booksRepo.find();
          return allBooks;
      }
  </code></pre>
  
  <p><strong>books.controller.ts</strong> - without any guard</p>
  
  <pre><code>SERVER_URL: string = 'http://localhost:3000';
  
      constructor(private readonly booksService: BooksService) { }
  
      @Get('books')
      // @UseGuards(AuthGuard());
      async index(): Promise&lt;Books[]&gt; {
          return await this.booksService.getBooks();
      }
  </code></pre>
  
  <p>Books entity is ok, and all books are in data base. The server is up. Can't understand why receive 404 error on /books...</p>