Last active
August 29, 2015 14:01
-
-
Save briangonzalez/02d5a746ba8d83b7967e to your computer and use it in GitHub Desktop.
icons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Icons = DS.Model.extend({ | |
contents: DS.attr('string') | |
}); | |
App.IconsSerializer = DS.RESTSerializer.extend({ | |
normalize: function() { | |
console.log('normalize!'); | |
} | |
}); | |
App.IconsAdapter = DS.RESTAdapter.extend({ | |
findAll: function(store, type, sinceToken) { | |
return this.ajax(this.buildURL(type.typeKey), 'GET'); | |
}, | |
buildURL: function() { | |
return '/assets/icons/sprites/svg-defs.svg'; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment