@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
16 lines (13 loc) • 699 B
JavaScript
import { CONTROLLER_API_DECORATOR_CONSTANT } from '../../../../constant/decorator/api/controller.constant.js';
import '../../../../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_API_DECORATOR_CONSTANT.RESERVED_METHOD_PREFIX}${method}`;
}
export { ApiControllerGetMethodName };
//# sourceMappingURL=method-name.utility.js.map