Created
April 26, 2012 19:43
-
-
Save smizell/2502461 to your computer and use it in GitHub Desktop.
API Call
This file contains hidden or 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
window.MobileAppCollection = Backbone.Collection.extend | |
url: "http://kate.murraystate.edu/api/v1/mobile_app/" | |
model: MobileApp | |
window.MobileApp = Backbone.Model.extend | |
urlRoot: "http://kate.murraystate.edu/api/v1/mobile_app/" | |
url: () -> | |
base = @urlRoot || (@collection && @collection.url) | |
if @isNew() then return base | |
return base + "/" + @id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment