This commit is contained in:
Felipe Batista
2025-01-27 17:44:27 -03:00
commit 47e7f75720
238 changed files with 36425 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/*
https://docs.nestjs.com/controllers#controllers
*/
import { Controller, Get, HttpException, HttpStatus } from '@nestjs/common';
import { SellerService } from './seller.service';
import { ApiTags } from '@nestjs/swagger';
@ApiTags('Seller')
@Controller('api/v1/sellers')
export class SellerController {
constructor(private readonly sellerService: SellerService){}
@Get() getSellers() {
try {
return this.sellerService.getSellers();
} catch (error) {
throw new HttpException(error.message, HttpStatus.BAD_REQUEST);
}
}
}