Files
api-AT/src/carrera/carrera.controller.ts
T
2026-02-23 18:16:17 -06:00

16 lines
460 B
TypeScript

import { Controller, Get, UseGuards } from '@nestjs/common';
import { CarreraService } from './carrera.service';
import { Carrera } from './entities/carrera.entity';
import { JwtAuthGuard } from 'src/user/jwt.guard';
@Controller('carrera')
export class CarreraController {
constructor(private readonly carreraService: CarreraService) { }
@UseGuards(JwtAuthGuard)
@Get()
findAll(): Promise<Carrera[]> {
return this.carreraService.findAll();
}
}