add: cart shipmet methods
This commit is contained in:
@@ -53,6 +53,16 @@ class ShipmentController extends BaseController {
|
||||
const data = await this.shipmentService.selectShipmentProvider(saveShippingInfo, user._id.toString());
|
||||
return this.response(data);
|
||||
}
|
||||
|
||||
@ApiOperation("get shipment methods for checkout")
|
||||
@ApiResponse("Successful", HttpStatus.Ok)
|
||||
@ApiAuth()
|
||||
@httpGet("/cart", Guard.authUser())
|
||||
public async getCartShipmentMethods(@request() req: Request) {
|
||||
const user = req.user as IUser;
|
||||
const data = await this.shipmentService.getCartShipmentMethods(user._id.toString());
|
||||
return this.response(data);
|
||||
}
|
||||
}
|
||||
|
||||
export { ShipmentController };
|
||||
|
||||
Reference in New Issue
Block a user