UNPKG

@crowdin/app-project-module

Version:

Module that generates for you all common endpoints for serving standalone Crowdin App

12 lines (11 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAutomationActionKey = getAutomationActionKey; exports.getAutomationActionUrl = getAutomationActionUrl; const util_1 = require("../../../util"); function getAutomationActionKey(automationAction) { return (0, util_1.kebabCase)(automationAction.name); } function getAutomationActionUrl(path, automationAction) { return `${path}/${automationAction.key}`; }