Commit 13e752e0 authored by Jarrod's avatar Jarrod 💬

Overridable "Cloud SDK" names

parent c4f71ba9
......@@ -32,7 +32,7 @@ module.exports = {
// We determine its name using the bare action name.
var bareActionName = target.action.replace(/\//g, '-')
var methodName = _.camelCase(bareActionName)
var methodName = target.name || _.camelCase(bareActionName)
var expandedAddress = sails.getRouteFor(target)
// Skip routes that just serve views.
......
......@@ -32,7 +32,7 @@ module.exports = {
// We determine its name using the bare action name.
var bareActionName = target.action.replace(/\//g, '-')
var methodName = _.camelCase(bareActionName)
var methodName = target.name || _.camelCase(bareActionName)
var expandedAddress = sails.getRouteFor(target)
// Skip routes that just serve views.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment