diff --git a/src/modules/orders/orders.controller.ts b/src/modules/orders/orders.controller.ts index dec27da..0a32b99 100644 --- a/src/modules/orders/orders.controller.ts +++ b/src/modules/orders/orders.controller.ts @@ -54,6 +54,15 @@ export class OrdersController { return this.ordersService.findAll(restId, dto); } + @UseGuards(AdminAuthGuard) + @ApiBearerAuth() + @ApiOperation({ summary: 'Get an order By id for User' }) + @ApiParam({ name: 'orderId', description: 'Order ID' }) + @Get('public/orders/:orderId') + findOneAsAdmin(@Param('orderId') orderId: string, @RestId() restId: string) { + return this.ordersService.findOne(orderId, restId); + } + @UseGuards(AdminAuthGuard) @ApiBearerAuth() @Patch('admin/orders/:orderId/confirm')