feat(invoices): add public invoices module with controller and service
refactor: remove unused trigger logs module and related files refactor: simplify good snapshot handling in sale invoice creation
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Public } from '@/common/decorators/public.decorator'
|
||||
import { Controller, Get, Param } from '@nestjs/common'
|
||||
import { ApiTags } from '@nestjs/swagger'
|
||||
import { InvoicesService } from './invoices.service'
|
||||
|
||||
@ApiTags('PublicInvoices')
|
||||
@Controller('public-invoices')
|
||||
export class InvoicesController {
|
||||
constructor(private readonly service: InvoicesService) {}
|
||||
|
||||
@Get(':id')
|
||||
@Public()
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.service.findOne(id)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user