Files
Reactive-Resume/server/src/fonts/fonts.controller.ts
Amruth Pillai 9c1380f401 🚀 release v3.0.0
2022-03-06 22:48:29 +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();
}
}