15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
import { Controller, Get, UseGuards } from '@nestjs/common';
|
|
import { PeriodoService } from './periodo.service';
|
|
import { JwtAuthGuard } from 'src/user/jwt.guard';
|
|
|
|
@Controller('periodo')
|
|
export class PeriodoController {
|
|
constructor(private readonly periodoService: PeriodoService) { }
|
|
|
|
@UseGuards(JwtAuthGuard)
|
|
@Get()
|
|
findAll() {
|
|
return this.periodoService.findAll();
|
|
}
|
|
}
|