This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Controller, Get, Post, Body, Patch, Delete, UseGuards, Param } from '@nestjs/common';
|
||||
import { Controller, Get, Post, Body, Patch, Delete, UseGuards, Param, Header } from '@nestjs/common';
|
||||
import { CartService } from '../providers/cart.service';
|
||||
import { BulkAddItemsToCartDto } from '../dto/bulk-add-items.dto';
|
||||
import { ApplyCouponDto } from '../dto/apply-coupon.dto';
|
||||
@@ -17,6 +17,9 @@ export class CartController {
|
||||
constructor(private readonly cartService: CartService) {}
|
||||
|
||||
@Get()
|
||||
@Header('Cache-Control', 'no-store, no-cache, must-revalidate')
|
||||
@Header('Pragma', 'no-cache')
|
||||
@Header('Expires', '0')
|
||||
@ApiOperation({ summary: 'Get cart for current user and restaurant' })
|
||||
@ApiHeader(API_HEADER_SLUG)
|
||||
async findOne(@UserId() userId: string, @RestId() restaurantId: string) {
|
||||
|
||||
Reference in New Issue
Block a user