mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-18 02:31:56 +10:00
18 lines
438 B
TypeScript
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();
|
|
}
|
|
}
|