fixing [200~findByCuenta~
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
import {
|
||||
Controller,
|
||||
Get,
|
||||
Param,
|
||||
} from '@nestjs/common';
|
||||
import { Controller, Get, Param } from '@nestjs/common';
|
||||
import { EquipoService } from './equipo.service';
|
||||
import { Equipo } from './entities/equipo.entity';
|
||||
|
||||
@@ -15,8 +11,18 @@ export class EquipoController {
|
||||
return this.equipoService.findAll();
|
||||
}
|
||||
|
||||
@Get('/active')
|
||||
findActive() {
|
||||
return this.equipoService.findActive();
|
||||
}
|
||||
|
||||
@Get('/disable')
|
||||
findDisable() {
|
||||
return this.equipoService.findDisable();
|
||||
}
|
||||
|
||||
@Get('/student/:id')
|
||||
findOnlyUsable(@Param('id')id:number): Promise<Equipo[]> {
|
||||
findOnlyUsable(@Param('id') id: number): Promise<Equipo[]> {
|
||||
return this.equipoService.findOnlyUsable(+id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user