Commit cb123d1b authored by Diego Iván's avatar Diego Iván
Browse files

cambiando endpoint a /town/:idTown/activity

parent b8125125
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -24,10 +24,10 @@ export class PlaceController {
    return await this.placeService.create(createPlaceDto);
  }

  @Get()
  async findAll() {
  @Get('/town/:idTown/activity')
  async findAll(@Param('idTown') idTown: number) {
    try {
      return this.placeService.findAll();
      return this.placeService.findAllByTown(idTown);
    } catch (e) {
      throw e;
    }