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 /
promo-codes /
Delete
Unzip
Name
Size
Permission
Date
Action
dto
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
entities
[ DIR ]
drwxrwxrwx
2025-03-22 07:46
promo-codes.controller.d.ts
667
B
-rw-rw-rw-
2025-03-22 07:46
promo-codes.controller.js
5.14
KB
-rw-rw-rw-
2025-03-22 07:46
promo-codes.controller.js.map
2.48
KB
-rw-rw-rw-
2025-03-22 07:46
promo-codes.module.d.ts
42
B
-rw-rw-rw-
2025-03-22 07:46
promo-codes.module.js
1.42
KB
-rw-rw-rw-
2025-03-22 07:46
promo-codes.module.js.map
481
B
-rw-rw-rw-
2025-03-22 07:46
promo-codes.service.d.ts
651
B
-rw-rw-rw-
2025-03-22 07:46
promo-codes.service.js
4.4
KB
-rw-rw-rw-
2025-03-22 07:46
promo-codes.service.js.map
2.61
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.PromoCodesController = void 0; const common_1 = require("@nestjs/common"); const promo_codes_service_1 = require("./promo-codes.service"); const create_promo_code_dto_1 = require("./dto/create-promo-code.dto"); const update_promo_code_dto_1 = require("./dto/update-promo-code.dto"); const promo_code_entity_1 = require("./entities/promo-code.entity"); const swagger_1 = require("@nestjs/swagger"); let PromoCodesController = class PromoCodesController { promoCodesService; constructor(promoCodesService) { this.promoCodesService = promoCodesService; } async findAll() { return this.promoCodesService.findAll(); } async findOne(id) { return this.promoCodesService.findOne(id); } async create(createPromoCodeDto) { return this.promoCodesService.create(createPromoCodeDto); } async update(id, updatePromoCodeDto) { return this.promoCodesService.update(id, updatePromoCodeDto); } async delete(id) { return this.promoCodesService.delete(id); } }; exports.PromoCodesController = PromoCodesController; __decorate([ (0, common_1.Get)(), (0, swagger_1.ApiOperation)({ summary: 'Get all promo codes' }), (0, swagger_1.ApiResponse)({ status: 200, description: 'List of promo codes', type: [promo_code_entity_1.PromoCode] }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise) ], PromoCodesController.prototype, "findAll", null); __decorate([ (0, common_1.Get)(':id'), (0, swagger_1.ApiOperation)({ summary: 'Get a promo code by ID' }), (0, swagger_1.ApiParam)({ name: 'id', description: 'Promo code ID', example: '550e8400-e29b-41d4-a716-446655440018' }), (0, swagger_1.ApiResponse)({ status: 200, description: 'Promo code details', type: promo_code_entity_1.PromoCode }), __param(0, (0, common_1.Param)('id')), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", Promise) ], PromoCodesController.prototype, "findOne", null); __decorate([ (0, common_1.Post)(), (0, swagger_1.ApiOperation)({ summary: 'Create a new promo code' }), (0, swagger_1.ApiBody)({ type: create_promo_code_dto_1.CreatePromoCodeDto }), (0, swagger_1.ApiResponse)({ status: 201, description: 'Promo code created', type: promo_code_entity_1.PromoCode }), __param(0, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [create_promo_code_dto_1.CreatePromoCodeDto]), __metadata("design:returntype", Promise) ], PromoCodesController.prototype, "create", null); __decorate([ (0, common_1.Patch)(':id'), (0, swagger_1.ApiOperation)({ summary: 'Update a promo code' }), (0, swagger_1.ApiParam)({ name: 'id', description: 'Promo code ID', example: '550e8400-e29b-41d4-a716-446655440018' }), (0, swagger_1.ApiBody)({ type: update_promo_code_dto_1.UpdatePromoCodeDto }), (0, swagger_1.ApiResponse)({ status: 200, description: 'Promo code updated', type: promo_code_entity_1.PromoCode }), __param(0, (0, common_1.Param)('id')), __param(1, (0, common_1.Body)()), __metadata("design:type", Function), __metadata("design:paramtypes", [String, update_promo_code_dto_1.UpdatePromoCodeDto]), __metadata("design:returntype", Promise) ], PromoCodesController.prototype, "update", null); __decorate([ (0, common_1.Delete)(':id'), (0, swagger_1.ApiOperation)({ summary: 'Delete a promo code' }), (0, swagger_1.ApiParam)({ name: 'id', description: 'Promo code ID', example: '550e8400-e29b-41d4-a716-446655440018' }), (0, swagger_1.ApiResponse)({ status: 204, description: 'Promo code deleted' }), __param(0, (0, common_1.Param)('id')), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", Promise) ], PromoCodesController.prototype, "delete", null); exports.PromoCodesController = PromoCodesController = __decorate([ (0, swagger_1.ApiBearerAuth)(), (0, common_1.Controller)('promo-codes'), __metadata("design:paramtypes", [promo_codes_service_1.PromoCodesService]) ], PromoCodesController); //# sourceMappingURL=promo-codes.controller.js.map