This commit is contained in:
2026-01-27 15:51:29 +03:30
parent 355d4afaa2
commit 18400efd55
2 changed files with 14 additions and 2 deletions
@@ -26,6 +26,13 @@ export class OrderController {
return this.orderService.createOrderAsUser(userId, body);
}
@Get('public/order/:id')
@UseGuards(AuthGuard)
@ApiOperation({ summary: 'order detail' })
orderDetail(@Param('id') orderId: string, @UserId() userId: string) {
return this.orderService.getOrderAsUser(userId, orderId);
}
@Delete('public/order/:id')
@UseGuards(AuthGuard)
@ApiOperation({ summary: 'Delete order ' })