added new Ep
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { CarreraService } from './carrera.service';
|
||||
import { Carrera } from './entities/carrera.entity';
|
||||
|
||||
@Controller('carrera')
|
||||
export class CarreraController {
|
||||
constructor(private readonly carreraService: CarreraService) {}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
findAll(): Promise<Carrera[]> {
|
||||
return this.carreraService.findAll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user