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 /
configs /
Delete
Unzip
Name
Size
Permission
Date
Action
dto
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
entities
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
configs.controller.d.ts
589
B
-rw-rw-rw-
2025-03-22 07:46
configs.controller.js
5.21
KB
-rw-rw-rw-
2025-03-22 07:46
configs.controller.js.map
2.64
KB
-rw-rw-rw-
2025-03-22 07:46
configs.module.d.ts
39
B
-rw-rw-rw-
2025-03-22 07:46
configs.module.js
1.35
KB
-rw-rw-rw-
2025-03-22 07:46
configs.module.js.map
458
B
-rw-rw-rw-
2025-03-22 07:46
configs.service.d.ts
555
B
-rw-rw-rw-
2025-03-22 07:46
configs.service.js
2.38
KB
-rw-rw-rw-
2025-03-22 07:46
configs.service.js.map
1.24
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.ConfigsController = void 0; const common_1 = require("@nestjs/common"); const configs_service_1 = require("./configs.service"); const create_config_dto_1 = require("./dto/create-config.dto"); const update_config_dto_1 = require("./dto/update-config.dto"); const config_entity_1 = require("./entities/config.entity"); const swagger_1 = require("@nestjs/swagger"); const jwt_auth_guard_1 = require("../../common/guards/jwt-auth.guard"); const public_decorator_1 = require("../../common/decorators/public.decorator"); let ConfigsController = class ConfigsController { configsService; constructor(configsService) { this.configsService = configsService; } async findAll() { return this.configsService.findAll(); } async create(createConfigDto) { return this.configsService.create(createConfigDto); } async update(id, updateConfigDto) { const config = await this.configsService.update(id, updateConfigDto); if (!config) throw new common_1.NotFoundException(`Config with ID ${id} not found`); return config; } async delete(id) { const result = await this.configsService.delete(id); if (!result) throw new common_1.NotFoundException(`Config with ID ${id} not found`); return { message: `Config with ID ${id} deleted successfully` }; } }; exports.ConfigsController = ConfigsController; __decorate([ (0, common_1.Get)(), (0, public_decorator_1.Public)(), (0, swagger_1.ApiOperation)({ summary: 'Get all configs' }), (0, swagger_1.ApiResponse)({ status: 200, description: 'List of configs', type: [config_entity_1.Config] }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise) ], ConfigsController.prototype, "findAll", null); __decorate([ (0, common_1.Post)(), (0, public_decorator_1.Public)(), (0, swagger_1.ApiOperation)({ summary: 'Create a new config' }), (0, swagger_1.ApiBody)({ type: create_config_dto_1.CreateConfigDto }), (0, swagger_1.ApiResponse)({ status: 201, description: 'Config created', type: config_entity_1.Config }), __param(0, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [create_config_dto_1.CreateConfigDto]), __metadata("design:returntype", Promise) ], ConfigsController.prototype, "create", null); __decorate([ (0, common_1.Put)(':id'), (0, public_decorator_1.Public)(), (0, swagger_1.ApiOperation)({ summary: 'Update an existing config' }), (0, swagger_1.ApiParam)({ name: 'id', description: 'Config ID', example: '550e8400-e29b-41d4-a716-446655440004' }), (0, swagger_1.ApiBody)({ type: update_config_dto_1.UpdateConfigDto }), (0, swagger_1.ApiResponse)({ status: 200, description: 'Config updated', type: config_entity_1.Config }), (0, swagger_1.ApiResponse)({ status: 404, description: 'Config not found' }), __param(0, (0, common_1.Param)('id')), __param(1, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [String, update_config_dto_1.UpdateConfigDto]), __metadata("design:returntype", Promise) ], ConfigsController.prototype, "update", null); __decorate([ (0, common_1.Delete)(':id'), (0, public_decorator_1.Public)(), (0, common_1.HttpCode)(200), (0, swagger_1.ApiOperation)({ summary: 'Delete a config' }), (0, swagger_1.ApiParam)({ name: 'id', description: 'Config ID', example: '550e8400-e29b-41d4-a716-446655440004' }), (0, swagger_1.ApiResponse)({ status: 200, description: 'Config deleted', type: Object }), (0, swagger_1.ApiResponse)({ status: 404, description: 'Config not found' }), __param(0, (0, common_1.Param)('id')), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", Promise) ], ConfigsController.prototype, "delete", null); exports.ConfigsController = ConfigsController = __decorate([ (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard), (0, swagger_1.ApiBearerAuth)(), (0, swagger_1.ApiTags)('configs'), (0, common_1.Controller)('configs'), __metadata("design:paramtypes", [configs_service_1.ConfigsService]) ], ConfigsController); //# sourceMappingURL=configs.controller.js.map