Retrieve an object with the actions registered handlers
fluxapp.registerActions('user', {
login: function(user, password) {
// process login
return promise;
},
logout: function() {
// process logout
return promise;
}
});
var context = fluxapp.createContext();
var userActions = context.getActions('user');
userActions.login('username', 'password');
userActions.logout();