nest generate controller controller-name In the controller file, you can define routes using the @Get() , @Post() , @Put() , and @Delete() decorators.