Atualização repositorio
This commit is contained in:
44
src/data-consult/data-consult.controller.ts
Normal file
44
src/data-consult/data-consult.controller.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
/* eslint-disable prettier/prettier */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
|
||||
/*
|
||||
https://docs.nestjs.com/controllers#controllers
|
||||
*/
|
||||
|
||||
import { Controller, Get, Param } from '@nestjs/common';
|
||||
import { DataConsultService } from './data-consult.service';
|
||||
|
||||
@Controller('api/v1/data-consult')
|
||||
export class DataConsultController {
|
||||
|
||||
constructor(private readonly dataConsultService: DataConsultService) {}
|
||||
|
||||
|
||||
@Get('stores')
|
||||
async stores() {
|
||||
return this.dataConsultService.stores();
|
||||
}
|
||||
|
||||
@Get('sellers')
|
||||
async sellers() {
|
||||
return this.dataConsultService.sellers();
|
||||
}
|
||||
|
||||
@Get('billings')
|
||||
async billings() {
|
||||
return this.dataConsultService.billings();
|
||||
}
|
||||
|
||||
@Get('customers/:filter')
|
||||
async customer(@Param('filter') filter: string) {
|
||||
return this.dataConsultService.customers(filter);
|
||||
}
|
||||
|
||||
@Get('products/:filter')
|
||||
async products(@Param('filter') filter: string) {
|
||||
return this.dataConsultService.products(filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user