Files
Reactive-Resume/apps/server/src/fonts/fonts.controller.ts
Amruth Pillai 295172687b 🚀 release: v3.0.0
2022-03-02 17:44:11 +01:00

18 lines
438 B
TypeScript

import { CacheInterceptor, Controller, Get, UseGuards, UseInterceptors } from '@nestjs/common';
import { JwtAuthGuard } from '@/auth/guards/jwt.guard';
import { FontsService } from './fonts.service';
@Controller('fonts')
@UseInterceptors(CacheInterceptor)
export class FontsController {
constructor(private fontsService: FontsService) {}
@UseGuards(JwtAuthGuard)
@Get()
getAll() {
return this.fontsService.getAll();
}
}