Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.69
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
test /
dist /
modules /
cities /
Delete
Unzip
Name
Size
Permission
Date
Action
dto
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
entities
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
cities.controller.d.ts
557
B
-rw-rw-rw-
2025-03-22 07:46
cities.controller.js
5.07
KB
-rw-rw-rw-
2025-03-22 07:46
cities.controller.js.map
2.64
KB
-rw-rw-rw-
2025-03-22 07:46
cities.module.d.ts
38
B
-rw-rw-rw-
2025-03-22 07:46
cities.module.js
1.32
KB
-rw-rw-rw-
2025-03-22 07:46
cities.module.js.map
454
B
-rw-rw-rw-
2025-03-22 07:46
cities.service.d.ts
522
B
-rw-rw-rw-
2025-03-22 07:46
cities.service.js
2.34
KB
-rw-rw-rw-
2025-03-22 07:46
cities.service.js.map
1.26
KB
-rw-rw-rw-
2025-03-22 07:46
Save
Rename
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CitiesController = void 0; const common_1 = require("@nestjs/common"); const cities_service_1 = require("./cities.service"); const create_city_dto_1 = require("./dto/create-city.dto"); const update_city_dto_1 = require("./dto/update-city.dto"); const city_entity_1 = require("./entities/city.entity"); const swagger_1 = require("@nestjs/swagger"); const jwt_auth_guard_1 = require("../../common/guards/jwt-auth.guard"); let CitiesController = class CitiesController { citiesService; constructor(citiesService) { this.citiesService = citiesService; } async findAll() { return this.citiesService.findAll(); } async create(createCityDto) { return this.citiesService.create(createCityDto); } async update(id, updateCityDto) { const city = await this.citiesService.update(id, updateCityDto); if (!city) throw new common_1.NotFoundException(`City with ID ${id} not found`); return city; } async delete(id) { const result = await this.citiesService.delete(id); if (!result) throw new common_1.NotFoundException(`City with ID ${id} not found`); return { message: `City with ID ${id} deleted successfully` }; } }; exports.CitiesController = CitiesController; __decorate([ (0, common_1.Get)(), (0, swagger_1.ApiOperation)({ summary: 'Get all cities' }), (0, swagger_1.ApiResponse)({ status: 200, description: 'List of cities', type: [city_entity_1.City] }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise) ], CitiesController.prototype, "findAll", null); __decorate([ (0, common_1.Post)(), (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard), (0, swagger_1.ApiBearerAuth)(), (0, swagger_1.ApiOperation)({ summary: 'Create a new city' }), (0, swagger_1.ApiBody)({ type: create_city_dto_1.CreateCityDto }), (0, swagger_1.ApiResponse)({ status: 201, description: 'City created', type: city_entity_1.City }), __param(0, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [create_city_dto_1.CreateCityDto]), __metadata("design:returntype", Promise) ], CitiesController.prototype, "create", null); __decorate([ (0, common_1.Put)(':id'), (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard), (0, swagger_1.ApiBearerAuth)(), (0, swagger_1.ApiOperation)({ summary: 'Update an existing city' }), (0, swagger_1.ApiParam)({ name: 'id', description: 'City ID', example: '550e8400-e29b-41d4-a716-446655440002' }), (0, swagger_1.ApiBody)({ type: update_city_dto_1.UpdateCityDto }), (0, swagger_1.ApiResponse)({ status: 200, description: 'City updated', type: city_entity_1.City }), (0, swagger_1.ApiResponse)({ status: 404, description: 'City not found' }), __param(0, (0, common_1.Param)('id')), __param(1, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [String, update_city_dto_1.UpdateCityDto]), __metadata("design:returntype", Promise) ], CitiesController.prototype, "update", null); __decorate([ (0, common_1.Delete)(':id'), (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard), (0, swagger_1.ApiBearerAuth)(), (0, common_1.HttpCode)(200), (0, swagger_1.ApiOperation)({ summary: 'Delete a city' }), (0, swagger_1.ApiParam)({ name: 'id', description: 'City ID', example: '550e8400-e29b-41d4-a716-446655440002' }), (0, swagger_1.ApiResponse)({ status: 200, description: 'City deleted', type: Object }), (0, swagger_1.ApiResponse)({ status: 404, description: 'City not found' }), __param(0, (0, common_1.Param)('id')), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", Promise) ], CitiesController.prototype, "delete", null); exports.CitiesController = CitiesController = __decorate([ (0, swagger_1.ApiTags)('cities'), (0, common_1.Controller)('cities'), __metadata("design:paramtypes", [cities_service_1.CitiesService]) ], CitiesController); //# sourceMappingURL=cities.controller.js.map