UNPKG

@elsikora/nestjs-crud-automator

Version:

A library for automating the creation of CRUD operations in NestJS.

18 lines (14 loc) 745 B
'use strict'; var controller_constant = require('../../../constant/decorator/api/controller.constant.js'); require('../../../constant/decorator/api/function.constant.js'); /** * Generates a standardized method name for controller methods based on the API route type. * Prefixes the method name with a reserved prefix defined in constants. * @param {EApiRouteType} method - The API route type (CREATE, DELETE, GET, etc.) * @returns {string} The generated method name */ function ApiControllerGetMethodName(method) { return `${controller_constant.CONTROLLER_API_DECORATOR_CONSTANT.RESERVED_METHOD_PREFIX}${method}`; } exports.ApiControllerGetMethodName = ApiControllerGetMethodName; //# sourceMappingURL=get-method-name.utility.js.map