var UsersAPI = Marty.createStateSource({
createUser: function (user) {
return $.get("/users");
}
});class UsersAPI extends Marty.StateSource {
createUser(user) {
return $.get("/users");
}
}type
The type of the state source (e.g. 'http').
mixins
An (optional) array of mixins that can be passed in through the createStateSource method.
app
Returns the instance's application.