boats
Version:
Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.
12 lines (11 loc) • 668 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
const tslib_1 = require("tslib");
const routePermission_1 = tslib_1.__importDefault(require("../routePermission"));
function default_1(input) {
const prefix = typeof input === 'object' ? input.prefix || '' : '';
const tail = typeof input === 'object' ? input.tail || '' : input || '';
const removeMethod = typeof input === 'object' ? input.removeMethod || false : false;
return (0, routePermission_1.default)(this.env.globals.boatsConfig, this.env.globals.currentFilePointer, this.env.globals.uniqueOpIdStripValue, prefix, tail, removeMethod);
}