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
// On the server we setup routes to interface with a car controller | |
app.post('/api/cars/', car.create); | |
app.put('/api/cars/:id', car.update); | |
app.get('/api/cars/:id', car.show); | |
//----------------------------------- | |
// To interface with this from the client we'll use angular $resource |