identity
Version:
Identity client
23 lines (20 loc) • 527 B
JavaScript
exports.action = {
name: 'profile',
description: 'User profile',
inputs: {
'required' : [],
'optional' : []
},
blockedConnectionTypes: [],
outputExample: {
success: true
},
requireAuth: false,
run: function(api, connection, next){
var res = connection.rawConnection.res;
var url = api.identity.site + '/api/profile';
connection.rawConnection.responseHeaders.push(['Location', url]);
connection.rawConnection.responseHttpCode = 307;
next(connection, true);
}
};