title: How to use parameters in routes with nestjs?
body: <p>I would like to use 3 routes: ‘project’; ‘project/1’; ‘project/authors’. 
  But when I call ‘project/authors’, triggered ‘project/1’ and I get an error. How to awoid it?</p>
  
  <pre><code>    @Controller('project')
      export class ProjectController {
  
          @Get()
          async getProjects(@Res() res): Promise&lt;ProjectDto[]&gt; {
              return await this.projectService.getProjects(0, 0).then(projects =&gt; res.json(projects));
          }
          @Get(':id')
          async getProject(@Param('id', new ParseIntPipe()) id, @Res() res): Promise&lt;ProjectDto&gt; {
              return await this.projectService.getProjects(id).then(project =&gt; res.json(project[0]));
          }
  
          @Get('/authors')
          async getAuthors(@Res() res): Promise&lt;AuthorDto[]&gt; {
              return await this.projectService.getAuthors().then(authors =&gt; res.json(authors));
          }
  
  }
  </code></pre>