Add coffee caching
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
import { Controller, Get } from '@nestjs/common';
|
import { Controller, Get, UseInterceptors } from '@nestjs/common';
|
||||||
import { HarbingerService } from './harbinger.service';
|
import { HarbingerService } from './harbinger.service';
|
||||||
import { FocoCoffeeService } from './fococoffee.service';
|
import { FocoCoffeeService } from './fococoffee.service';
|
||||||
import { LimaService } from './lima.service';
|
import { LimaService } from './lima.service';
|
||||||
import { BindleService } from './bindle.service';
|
import { BindleService } from './bindle.service';
|
||||||
import { ApiResponse, ApiTags } from '@nestjs/swagger';
|
import { ApiResponse, ApiTags } from '@nestjs/swagger';
|
||||||
|
import { CacheInterceptor } from '@nestjs/cache-manager';
|
||||||
|
|
||||||
@Controller('fococoffee')
|
@Controller('fococoffee')
|
||||||
@ApiTags('fococoffee')
|
@ApiTags('fococoffee')
|
||||||
|
@UseInterceptors(CacheInterceptor)
|
||||||
export class FocoCoffeeController {
|
export class FocoCoffeeController {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
Reference in New Issue
Block a user