From 73c91a7c63d44cd2d94d85a13b2c3fe72f40294d Mon Sep 17 00:00:00 2001 From: Chip Wasson Date: Fri, 5 Apr 2024 16:52:11 -0600 Subject: [PATCH] Add coffee caching --- src/fococoffee/fococoffee.controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fococoffee/fococoffee.controller.ts b/src/fococoffee/fococoffee.controller.ts index 17facf2..7e254cf 100644 --- a/src/fococoffee/fococoffee.controller.ts +++ b/src/fococoffee/fococoffee.controller.ts @@ -1,12 +1,14 @@ -import { Controller, Get } from '@nestjs/common'; +import { Controller, Get, UseInterceptors } from '@nestjs/common'; import { HarbingerService } from './harbinger.service'; import { FocoCoffeeService } from './fococoffee.service'; import { LimaService } from './lima.service'; import { BindleService } from './bindle.service'; import { ApiResponse, ApiTags } from '@nestjs/swagger'; +import { CacheInterceptor } from '@nestjs/cache-manager'; @Controller('fococoffee') @ApiTags('fococoffee') +@UseInterceptors(CacheInterceptor) export class FocoCoffeeController { constructor(