Loading backend/src/place/place.controller.ts +0 −10 Original line number Diff line number Diff line Loading @@ -51,14 +51,4 @@ export class PlaceController { findOne(@Param('id') id: string) { return this.placeService.findOne(+id); } @Patch(':id') update(@Param('id') id: string, @Body() updatePlaceDto: UpdatePlaceDto) { return this.placeService.update(+id, updatePlaceDto); } @Delete(':id') remove(@Param('id') id: string) { return this.placeService.remove(+id); } } backend/src/place/place.service.ts +0 −8 Original line number Diff line number Diff line Loading @@ -107,12 +107,4 @@ export class PlaceService { const place = await this.placeRepository.findOneBy({ idPlace: id }); return place; } update(id: number, updatePlaceDto: UpdatePlaceDto) { return `This action updates a #${id} place`; } remove(id: number) { return `This action removes a #${id} place`; } } backend/src/pointOfInterest/PointOfInterest.service.ts +0 −1 Original line number Diff line number Diff line import { BadRequestException, Injectable } from '@nestjs/common'; import { CreatePointAndTradDto } from './dto/create-pointAndTraduction.dto'; import { UpdatePointDto } from './dto/update-point.dto'; import { InjectDataSource, InjectRepository } from '@nestjs/typeorm'; import { PointOfInterest } from './entities/PointOfInterest.entity'; import { DataSource, Repository } from 'typeorm'; Loading backend/src/town/town.controller.ts +1 −11 Original line number Diff line number Diff line import { Controller, Get, Post, Param, Delete, UseInterceptors, UploadedFile, Body, Query } from '@nestjs/common'; import { Controller, Get, Post, Param, UseInterceptors, UploadedFile, Body, Query } from '@nestjs/common'; import { TownService } from './town.service'; import { ApiBearerAuth, ApiBody, ApiConsumes, ApiParam, ApiQuery, ApiTags } from '@nestjs/swagger'; import { FileValidationPipe } from 'src/shared/pipe/file-validation.pipe'; Loading Loading @@ -37,14 +37,4 @@ export class TownController { throw error; } } @Get() findAll() { return this.townService.findAll(); } @Delete(':id') remove(@Param('id') id: string) { return this.townService.remove(+id); } } backend/src/town/town.service.ts +0 −8 Original line number Diff line number Diff line Loading @@ -69,12 +69,4 @@ export class TownService { stateId: item.stateId, })); } findAll() { return `This action returns all town`; } remove(id: number) { return `This action removes a #${id} town`; } } Loading
backend/src/place/place.controller.ts +0 −10 Original line number Diff line number Diff line Loading @@ -51,14 +51,4 @@ export class PlaceController { findOne(@Param('id') id: string) { return this.placeService.findOne(+id); } @Patch(':id') update(@Param('id') id: string, @Body() updatePlaceDto: UpdatePlaceDto) { return this.placeService.update(+id, updatePlaceDto); } @Delete(':id') remove(@Param('id') id: string) { return this.placeService.remove(+id); } }
backend/src/place/place.service.ts +0 −8 Original line number Diff line number Diff line Loading @@ -107,12 +107,4 @@ export class PlaceService { const place = await this.placeRepository.findOneBy({ idPlace: id }); return place; } update(id: number, updatePlaceDto: UpdatePlaceDto) { return `This action updates a #${id} place`; } remove(id: number) { return `This action removes a #${id} place`; } }
backend/src/pointOfInterest/PointOfInterest.service.ts +0 −1 Original line number Diff line number Diff line import { BadRequestException, Injectable } from '@nestjs/common'; import { CreatePointAndTradDto } from './dto/create-pointAndTraduction.dto'; import { UpdatePointDto } from './dto/update-point.dto'; import { InjectDataSource, InjectRepository } from '@nestjs/typeorm'; import { PointOfInterest } from './entities/PointOfInterest.entity'; import { DataSource, Repository } from 'typeorm'; Loading
backend/src/town/town.controller.ts +1 −11 Original line number Diff line number Diff line import { Controller, Get, Post, Param, Delete, UseInterceptors, UploadedFile, Body, Query } from '@nestjs/common'; import { Controller, Get, Post, Param, UseInterceptors, UploadedFile, Body, Query } from '@nestjs/common'; import { TownService } from './town.service'; import { ApiBearerAuth, ApiBody, ApiConsumes, ApiParam, ApiQuery, ApiTags } from '@nestjs/swagger'; import { FileValidationPipe } from 'src/shared/pipe/file-validation.pipe'; Loading Loading @@ -37,14 +37,4 @@ export class TownController { throw error; } } @Get() findAll() { return this.townService.findAll(); } @Delete(':id') remove(@Param('id') id: string) { return this.townService.remove(+id); } }
backend/src/town/town.service.ts +0 −8 Original line number Diff line number Diff line Loading @@ -69,12 +69,4 @@ export class TownService { stateId: item.stateId, })); } findAll() { return `This action returns all town`; } remove(id: number) { return `This action removes a #${id} town`; } }