TheOneTheOnlyDavidBrown / crunchpowjs

ES6/2015 library that allows for passing of view data to ES6/2015 modules with two way data binding and model validation against a schema
http://theonetheonlydavidbrown.github.io/crunchpowjs/dist/
MIT License
1 stars 0 forks source link

Add XHR library to BaseModel #7

Closed TheOneTheOnlyDavidBrown closed 9 years ago

TheOneTheOnlyDavidBrown commented 9 years ago

include an XHR library and update the functions to call the appropriate endpoint for each method

ie modelName.fetch(:id) hits api/v1/modelName/:id with the GET method and so on

TheOneTheOnlyDavidBrown commented 9 years ago

have fetch as a dependency for the router (in progress). will use it for this