Easy
Take a look at the code below:
@Controller('cats')
export class CatsController {
@Get()
findAll(): string {
return 'This action returns all cats';
}
}
Which URL would be used to access the findAll()
method?
Author: AxelStatus: PublishedQuestion passed 149 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
7
What is the main responsibility of a pipe in Nest.js?8
How to make an `ExceptionFilter` global so that it applies to your entire application in NestJS3
What is the main use of the `OnModuleInit` interface in Nest.js?4
Which decorator is used to associate a Guard with a route or controller in Nest?3
Nest module lifecycle methods execution order11
How to declare a class as a controller in Nest.js5
How to define a service or component that can be injected in Nest.js