Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (/^\//.test(controller)) {
return controller.substr(1);
} else {
if (/^\//.test(modyoule)) {
modyoule = modyoule.substr(1);
}
return _.compact([modyoule, controller]).join('/');
}
}
return controller;
}
}
// Delegates
delegate(Route.prototype, 'options')
.getter('format')
.getter('as')
.getter('to')
export default Route;
'get',
'options',
'post',
'put',
'patch',
// delete
'delete',
'del'
].forEach((verb) => {
RouteMapper.prototype[verb] = function() {
return this._mapMethod(verb, arguments);
};
});
// Delegates
delegate(RouteMapper.prototype, '$scope')
.getter('isResources')
.getter('isResourceScope')
.getter('isNestedScope')
.getter('isResourceMethodScope')
export default RouteMapper;